[Newbies] Remove old instances of a Class
Claus Kick
claus_kick at web.de
Sat May 24 21:54:08 UTC 2008
why not just do
MyClass allInstances do:[:i | i := nil].
Smalltalk unusedMemory.
(Cannot recall if unusedMemory triggers a GC in Squeak, or even exists).
Anyways, the first should nil all of your instances and then get them gc'ed.
--
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."
More information about the Beginners
mailing list