[BUG]Collection>>removeAll:

Tim Rowledge tim at sumeru.stanford.edu
Thu Aug 22 17:32:21 UTC 2002


goran.hultgren at bluefish.se is claimed by the authorities to have written:


> removeAll
> 	self setCollection: (Array new: array size)
No good I'm afraid - it is entirely possible that important things are
done by each individual #remove: and besides, the new collection
probably ought to be be of some default empty size, not the size of the
original. Oh, and it's even possible the internal collection is not an
Array.

Aside from, good idea :-)

tim
-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: START: Cancel preceding jobs in queue




More information about the Squeak-dev mailing list