[Newbies] Removing 'dead' instances
Matthew Fulmer
tapplek at gmail.com
Sun Sep 28 16:43:01 UTC 2008
On Sun, Sep 28, 2008 at 12:08:15PM -0400, Andy Burnett wrote:
> Could some kind soul please explain what I am doing wrong here?
>
> I have a model, called Fspace, which I have created several instances of,
> whilst I was testing it.
>
> Fspace allInstances size reports 9 instances.
>
> When I run
>
> Fspace allInstancesDo:
> [:each |
> each := nil.
> Transcript show: (each value); cr.
> Smalltalk garbageCollect]
>
> The transcript shows that the values are set to nil. However, the instances
> don't go away. So, what am I doing wrong?
>
> Cheers
> AB
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
try closing your workspaces
--
Matthew Fulmer -- http://mtfulmer.wordpress.com/
More information about the Beginners
mailing list