in reply to Controlling the order of object destruction
I am not sure (but could be wrong) that your assertion about LIFO order is correct. If I remember correctly, all that is guaranteed is that an object may (note that I didn't say will) only be destroyed when there is no longer a reference pointing to it.
This is why objects with circular references need to use special tricks (like weaken or similar) to free memory.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Controlling the order of object destruction
by metaperl (Curate) on Dec 10, 2009 at 17:17 UTC | |
by Crackers2 (Parson) on Dec 10, 2009 at 18:36 UTC |