Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Throw from within a DESTROY block (bug)

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


in reply to Re: Throw from within a DESTROY block (bug)
in thread Throw from within a DESTROY block

just completely ignoring during-DESTROY exceptions? I don't have 5.14 handy anywhere so I can't test exactly what it does.

They are output to STDERR like before.

$ perl -Mwarnings -Mstrict -E ' sub DESTROY { say "invoked destructor"; die "aieeee" } say "creating object"; { bless( {} ) } say "object destroyed (should not reach here): $@" ' creating object invoked destructor (in cleanup) aieeee at -e line 2. object destroyed (should not reach here):

Like before, that only happens if warnings are on, so it can be completely silent!!

IIRC, more work is planned, but I haven't heard anything in a while.


Comment on Re^2: Throw from within a DESTROY block (bug)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-03 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls