[Newbies] Remove old instances of a Class
Bert Freudenberg
bert at freudenbergs.de
Sun May 25 20:45:03 UTC 2008
On 24.05.2008, at 23:54, Claus Kick wrote:
> why not just do
>
> MyClass allInstances do:[:i | i := nil].
> Smalltalk unusedMemory.
This is nonsense. i is a temporary variable, setting it to nil does
nothing to the original references.
In this case, your sig's appropriateness approaches those of Tim ;)
- Bert -
> --
> Claus Kick
>
> "Wenn Sie mich suchen: Ich halte mich in der Nähe des Wahnsinns auf.
> Genauer gesagt auf der schmalen Linie zwischen Wahnsinn und Panik.
> Gleich um die Ecke von Todesangst, nicht weit weg von Irrwitz und
> Idiotie."
>
> "If you are looking for me: I am somewhere near to lunacy.
> More clearly, on the narrow path between lunacy and panic.
> Right around the corner of fear of death,
> not far away from idiotism and insanity."
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
More information about the Beginners
mailing list