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

Re: deprecating SIGDIE

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
October 2, 1999 04:29
Subject:
Re: deprecating SIGDIE
Message ID:
199910021128.MAA00633@bactrian.ni-s.u-net.com
Ilya Zakharevich <ilya@math.ohio-state.edu> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About