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

Blake blake at kingdomrpg.com
Tue Feb 19 23:25:28 UTC 2008

On Tue, 19 Feb 2008 15:19:40 -0800, nicolas cellier <ncellier at ifrance.com>  

> But become: is still essential for operations like growing the  
> MethodDictionary when you add new methods to a class, or migrate  
> allInstances when you a or remove an instance variable to a class, to  
> name few.
> So, it is not bogus. Just handle with care.

OK. Does a newbie need to use it? To empty a collection? (Or whatever?)

I'm trying to get at what should be a very simple thing without going to  
the metal, as it were.

One thing I wasn't clear on is whether Bert's suggestion:

aColl removeAllSuchThat: [:anElement| true].

Is okay, and why it's okay while many of the other similar approaches were  

More information about the Beginners mailing list