logo       

Removing an object instance: msg#00056

lang.smalltalk.squeak.beginners

Subject: Removing an object instance

Hello,

 

I would like to know when an object created in a workspace is deleted (garbaged).

For exemple, when I do the following in a workspace,

 

MyWorld new inspect.   “the object is allocated”

 

Then I close the workspace and the inspect window.

 

I then ask for MyWorld allInstances in another window and the value is 1.

 

I don’t understand this behaviour. The object shoudn’t be referenced or only by weak references, no ?

 

Sorry if this question has already been answered.

 

Stéphane Millet

 

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise