An 3.9 image for developers
Klaus D. Witzel
klaus.witzel at cobss.com
Sat Sep 16 19:55:16 UTC 2006
Hi Ramon,
on Sat, 16 Sep 2006 21:26:07 +0200, you wrote:
> Klaus wrote:
>> OrderedCollection for example, has indices for first and last element,
>> so why copy an OrderedCollection in #removeAll and waste memory and
>> time?
>
> OrderedCollection has no #removeAll, if a more efficient one can be
> implemented in it via it's indices, it could simply override the default
> implementation. This doesn't seem a reason for a superclass not to
> provide a default implementation, if it can.
Right you are, always do it the object oriented way. Thank you for the
reminder :)
/Klaus
More information about the Squeak-dev
mailing list
|