develooper Front page | perl.perl5.porters | Postings from October 1999

Re: deprecating SIGDIE

Thread Previous | Thread Next
Nick Ing-Simmons
October 2, 1999 04:29
Re: deprecating SIGDIE
Message ID:
Ilya Zakharevich <> writes:
>Current situation: as Larry said, you do not need to protect against
>__DIE__.  __DIE__ handler *should not* step on other people's $@.  

The current situation is that there is lots of code which does:

$SIG{__DIE__} = \&Carp::confess;

or similar which _does_ step on $@.

I did not add the locals for fun, but to make Tk work in such situations
in response to "bug reports". It was less work to add the locals than 
answer all the e-mails say "don't do that".

And Tk will be used with perl5.005_0X for a while, and that needs the 
protection. So leave __DIE__ as is and add a new clean scheme.

Nick Ing-Simmons

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About