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.
In reply to Re: Re: Re: Global objects and GC
by chromatic
in thread Global objects and GC
by oyasuminasai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |