[BUG]Collection>>removeAll:
Ian Piumarta
ian.piumarta at inria.fr
Mon Aug 19 10:19:55 UTC 2002
Being a bear of little brain I'm probably missing something fundamental
here, but...
On Fri, 16 Aug 2002, Richard A. O'Keefe wrote:
>
> The simplest change is
>
> removeAll: aCollection
> |c|
>
> (c := aCollection) == self ifTrue: [c := c copy].
> c do: [:each | self remove: each].
> ^c
...what's wrong with
aCollection == self ifTrue: [^self species new].
?
Ian
More information about the Squeak-dev
mailing list
|