Circular dependencies

2010-05-03 Thread Dan Horne
Say Object A creates Object B, where B has an attribute that is Object A. If A goes out of scope, do A and B get cleaned up, or do I need to write something in the DEMOLISH method to deal with this circular relationship?

Re: Circular dependencies

2010-05-03 Thread Chris Prather
On Mon, May 3, 2010 at 9:38 PM, Dan Horne dan.ho...@redbone.co.nz wrote: Say Object A creates Object B, where B has an attribute that is Object A. If A goes out of scope,  do A and B get cleaned up, or do I need to write something in the DEMOLISH method to deal with this circular relationship?

Re: Circular dependencies

2010-05-03 Thread Dan Horne
Thanks - that's exactly what I was after. Dan On 4 May 2010 13:39, Chris Prather ch...@prather.org wrote: On Mon, May 3, 2010 at 9:38 PM, Dan Horne dan.ho...@redbone.co.nz wrote: Say Object A creates Object B, where B has an attribute that is Object A. If A goes out of scope, do A and B