Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Controlling the order of object destruction

by Crackers2 (Parson)
on Dec 10, 2009 at 18:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://812266]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found