logo       

Re: Recap: How to empty a collection: msg#00124

lang.smalltalk.squeak.beginners

Subject: Re: Recap: How to empty a collection

nicolas cellier a écrit :
Blake a écrit :

Well, from what I was reading, "slow" and "smells" is putting it too mildly. It sounds like it can corrupt your image, i.e., leave you with non-working objects in unexpected places. I wouldn't even mention it.

Huh?
Have a proof of what you wrote?

Ah i see, you mean dangerous if used without care, like
Smalltalk become: Float.
(this one is not very dangerous, just crash your image).

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.

Nicolas


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise