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

Re^7: Throw from within a DESTROY block

by ikegami (Pope)
on Sep 07, 2011 at 03:02 UTC ( #924511=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Throw from within a DESTROY block
in thread Throw from within a DESTROY block

I don't see it. See I nothing practical in tye's reply, just how it should behave.


Comment on Re^7: Throw from within a DESTROY block
Re^8: Throw from within a DESTROY block
by ribasushi (Monk) on Sep 07, 2011 at 03:05 UTC
    Quoting from http://www.perlmonks.org/?node_id=924499:

    But the wonderful value of DESTROY is that every c'tor (constructor) that succeeds will always be followed by its paired d'tor, which makes it a very valuable tool for the sane handling of tons of things (all manner of resource allocation but also other things that should always be done in pairs, like transactions, reference counting, etc.). And handling tons of things means that you need to be able to deal with that handling going wrong or failing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-09-18 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (104 votes), past polls