in reply to Re: Re: Global objects and GC
in thread Global objects and GC
At the end of the program, I'd expect $f to go out of scope first, calling its DESTROY. Since it contains a reference to a Bar, the contained object should still exist, so things are okay.
If $f were global or if it had more than one reference, things might be stickier.
|
|---|