Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^8: Throw from within a DESTROY block

by ribasushi (Monk)
on Sep 07, 2011 at 03:05 UTC ( #924514=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^8: Throw from within a DESTROY block

Replies are listed 'Best First'.
Re^9: Throw from within a DESTROY block
by ikegami (Pope) on Sep 07, 2011 at 03:09 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924514]
help
Chatterbox?
[ambrus]: YourMother: my brother told me their cat wants to climb into the dishwasher if they leave the door open. Not when the dishwasher is started, but after it's done washing, because it's still warm and cats like warm.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-12-18 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (492 votes). Check out past polls.

    Notices?