June 26, 2013
10:05 p.m.
There is no such thing as #release in Pharo. If you want your objects to be garbage collected just make sure to remove all references to it. You simply assign nil to instance variables which previously held such and object. Does that answer your question? On 2013-06-26, at 23:47, Paul DeBruicker <pdebruic@gmail.com> wrote:
Lets say I'm modeling a navy that is comprised of many ships each with their own soldiers and jobs. If I want one of the ships to be GC'd do I need to implement #release in the soldier and job objects and send it to each of those soldiers and jobs that live and work on the ship I want GC'd or is removing the references between the ship and the navy enough to have the whole ship (including its soldiers and jobs) GC'd?