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

Re: deprecating SIGDIE

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
October 1, 1999 05:41
Subject:
Re: deprecating SIGDIE
Message ID:
199910011240.NAA27068@tiuk.ti.com
Joshua N Pritikin <joshua.pritikin@db.com> writes:
>
>Isn't it that true that $SIG{__EXCEPTION__} will not be able to *change*
>the exception string/object, only record it?

That is true of __DIE__ these days too - but it can re-throw an 
alternative e.g. what do you do with :

$SIG{__EXCEPTION__} = sub { die "Gibberish" };
eval { die "Sanity" };
print $@;

Which is in essence what all the local hackery is to protect against.

-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


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