Shouldn't ifEmpty return self?
Klaus D. Witzel
klaus.witzel at cobss.com
Mon Jun 12 19:33:33 UTC 2006
On Mon, 12 Jun 2006 20:55:21 +0200, Boris Popov wrote:
> Umm, no, receiver of a doit should have nothing to do with the code being
> executed. Here's a VisualWorks implementation, which is more correct
> given
> the intent of these methods,
>
> #(1) ifEmpty: [nil] #(1)
That is what I expect, too.
Besides, the current Squeak implementaton of #ifEmpty: does not send
#value to its argument (a block) ... this method is perhaps an example of
one bug not canceling the other one ;-)
/Klaus
> #() ifNotEmpty: [nil] #()
>
> Cheers!
>
> -Boris
>
More information about the Squeak-dev
mailing list
|