At 08:21 -0500 11/4/07, Dr Gerard Hammond wrote: >Each child needs to clean up it's link to the parent. >Just call your own child.cleanup when closing the parent (ie in the >_parent's_ destructor)
This sounds a great cure for WeakRef which feels unnatural to me, but, I'm confused! If I set EggCarton = nil, won't that kill the EggCarton and the last references to the Eggs thereby eventually garbaging the Eggs. Thus no need for a child.cleanup. Does Nil take care of this problem? If I let EggCarton go out of scope, say in the main application, it won't be garbaged because the Eggs still hold a reference to it. Thus no kill, no destructor, no child.cleanup. -- Easter Bunny Helper _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
