[BUG]Collection>>removeAll:
Andreas Raab
Andreas.Raab at gmx.de
Tue Aug 20 22:02:34 UTC 2002
> Otherwise we are starting to open a far larger can of worms
> than I think anybody wants to deal with. For example, I
> challenge ANYBODY on this list to tell me (WITHOUT trying
> it and WITHOUT reading the code involved) the
> behaviour and/or result of the following:
>
> | oc |
> oc _ OrderedCollection with: #foo.
> ^oc addAll: oc.
>
> (Small, and definitely alcoholic, prize in the bar at OOPSLA
> for the first correct answer out of the hat. [And if anybody
> comes up with the correct answer, I _will_ know that they've
cheated!])
Boy, that's one of the nicest and most obscure examples I've ever seen.
My initial guess was that it would loop infinitely but then I tried and
I still don't get the result... Thanks for finding this!
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|