[Newbies] Re: Re: How to empty a collection?

Klaus D. Witzel klaus.witzel at cobss.com
Tue Feb 19 16:21:57 UTC 2008


On Tue, 19 Feb 2008 16:56:48 +0100, cdrick wrote:

>> >
>> > Or maybe, if aCollection == self, a warning could be raised ?
>> >
>> > What do you think ?
>>
>> Thumbs down, I do not want anybody copy a collection behind my back
>> (however small or large it is) just because remove* has nothing to do  
>> with copy.
>>
> Ok, I can understand.
> What about the error ?

This is a bug, Smalltalk cannot compromise its fundamental structures  
(#removeAll is ANSI). Enter the report if not already on mantis & attach  
your fix.

/Klaus




More information about the Beginners mailing list