Front page | perl.perl5.porters |
Postings from September 1999
Re: deprecating SIGDIE
Thread Previous
|
Thread Next
From:
Tom Christiansen
Date:
September 30, 1999 13:55
Subject:
Re: deprecating SIGDIE
Message ID:
199909302054.OAA16561@jhereg.perl.com
The current doc set reads:
perlfunc/die
Because this promotes action at a distance, this counterintuitive
behavior may be fixed in a future release.
perlvar/%SIG
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.
--tom
Thread Previous
|
Thread Next