Re: [Pharo-users] When exactly an object gets deleted from the system ?

2015-12-02 Thread stepharo
GC handles circular dependencies. So you should have an extra pointer pointing to one of your circular elements. Le 30/11/15 12:22, Dimitris Chloupis a écrit : and of course you are both correct , I have a circular reference, basically an object A referencing object B which references object

[Pharo-users] When exactly an object gets deleted from the system ?

2015-11-30 Thread Dimitris Chloupis
I am wondering when an instance of a class is garbage collected and deleted from the system. is there a way to manually deleted it ?

Re: [Pharo-users] When exactly an object gets deleted from the system ?

2015-11-30 Thread Ferlicot D. Cyril
Le 30/11/2015 11:40, Dimitris Chloupis a écrit : > I am wondering when an instance of a class is garbage collected and > deleted from the system. > > is there a way to manually deleted it ? If there is no Object that reference your object you can force a Garbage collect with "Smalltalk

Re: [Pharo-users] When exactly an object gets deleted from the system ?

2015-11-30 Thread Esteban Lorenzano
> On 30 Nov 2015, at 11:55, Ferlicot D. Cyril wrote: > > Le 30/11/2015 11:40, Dimitris Chloupis a écrit : >> I am wondering when an instance of a class is garbage collected and >> deleted from the system. >> >> is there a way to manually deleted it ? > > If there is

Re: [Pharo-users] When exactly an object gets deleted from the system ?

2015-11-30 Thread Esteban Lorenzano
Hi, > On 30 Nov 2015, at 11:40, Dimitris Chloupis wrote: > > I am wondering when an instance of a class is garbage collected and deleted > from the system. > > is there a way to manually deleted it ? no, that beats the purpose of a garbage collector. but… it should

Re: [Pharo-users] When exactly an object gets deleted from the system ?

2015-11-30 Thread Dimitris Chloupis
and of course you are both correct , I have a circular reference, basically an object A referencing object B which references object A. No wonder why is not gc. Thanks for helping me out spotting this. On Mon, Nov 30, 2015 at 12:56 PM Ferlicot D. Cyril wrote: > Le