Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Controlling the order of object destruction

by Crackers2 (Parson)
on Dec 10, 2009 at 18:36 UTC ( #812266=note: print w/replies, xml ) Need Help??

in reply to Re^2: Controlling the order of object destruction
in thread Controlling the order of object destruction

Neither MidLifeXis nor ikegami's statements seem to imply a guarantee that an object will be immediately be destroyed when the last reference goes away though.

So even in your second case it would be in theory possible that the objects are freed in a different order than what you're expecting.

So there still two questions that might be interesting: 1) does the spec mandate object destruction as soon as there's no reference left; and 2) do all current implementations (including Activestate) behave the same way?

  • Comment on Re^3: Controlling the order of object destruction

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812266]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-10-28 02:11 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (374 votes). Check out past polls.