[newbie question]removing instances

stéphane ducasse ducasse at iam.unibe.ch
Mon Apr 18 17:13:22 UTC 2005


hi

normally when you do not refer to the objects you created they get 
garbage-collected.
So in general you do not have to worry about "remove instances" this is 
done automatically.
Sometimes you can "help" the gc by niling some references.

Stef

On 18 avr. 05, at 18:17, Mike wrote:

> This is an interesting question (to me anyway).  When I create
> instances from the workspace, do they remain in the image?  if so,
> whats retaining references to them?
>
> Thanks very much.
>
> Take care,
> Mike.
>
> Receive and share.
>
> On Mon Apr 18 09:13:32 PDT 2005, Matej Kosik <kosik at fiit.stuba.sk>
> wrote:
>
>> Steve Moffitt wrote:
>>> I've created several instances of MagmaCollection learning how
>>> things work and now I can't get rid of them. Is there a way in
>>> to remove instances you've created ?
>>>
>>> Appreciate all help,
>>> Steve
>>
>> Hello,
>>
>> In some cases the following methods come handy:
>>
>> 	allInstances
>> 	allInstancesDo:
>> 	...
>>
>> Once I tried them and they worked.
>> -- Matej Kosik, icq://300133844, 
>> http://altair.dcs.elf.stuba.sk/wiki/Kosik/Main
>>
>>
>>
>>
>




More information about the Squeak-dev mailing list