+1
On 2 Aug 2020, at 19:37, Richard Sargent <rsargent@5x5.on.ca> wrote:
On August 2, 2020 10:16:54 AM PDT, tbrunz <wild.ideas@gmail.com> wrote:
Thanks, Richard.
So adding #yourself is mostly needed for cases where you send #add: to an OrderedCollection (because that returns the added element instead of returning the collection as most expect it would)?
No.
It is used when you don't know what the last message send answers. And, *that* is most of the time, because even when you know the answer today, you don't know the future changes.
I've been adding it in all cases, which I guess does no harm.
That is the correct answer. Add it unless you want the result of the last message send.
-t
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
-------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France