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

Re: deprecating SIGDIE

Thread Previous | Thread Next
Tom Christiansen
September 30, 1999 13:55
Re: deprecating SIGDIE
Message ID:
The current doc set reads:

    Because this promotes action at a distance, this counterintuitive
    behavior may be fixed in a future release.

    Due to an implementation glitch, the C<$SIG{__DIE__}> hook is
    called even inside an eval().  Do not use this to rewrite a pending
    exception in C<$@>, or as a bizarre substitute for overriding
    CORE::GLOBAL::die().  This strange action at a distance may be fixed
    in a future release so that C<$SIG{__DIE__}> is only called if your
    program is about to exit, as was the original intent.  Any other
    use is deprecated.

As you see, the bug has already been documented, so no one can
say they didn't know.


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