Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Controlling the order of object destruction

by Crackers2 (Vicar)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2014-09-18 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (105 votes), past polls