[ANSI-Smalltalk] Re: A list of interesting methods, ifNotNil:

Paolo Bonzini bonzini at gnu.org
Mon Sep 8 19:50:58 BST 2008


>>     ifNotEmptyDo: aBlock
>>         ^self isEmpty ifTrue: [aBlock value: self]
> 
> That is still bizarre, if you ask me...

Uhm, indeed.  Paste-o or bug!?

>> It certainly doesn't involve any sending of the message #do:.
> 
> No. I think Paolo meant that he would read it like that.
> It would feel to him as if a #do: iteration was implied.
> (I suspect this is what Paolo meant).

Yes, thanks for helping decyphering my messages. :-)

Paolo



More information about the ANSI-Smalltalk mailing list