Front page | perl.perl5.porters |
Postings from October 1999
Re: deprecating SIGDIE
Thread Previous
|
Thread Next
From:
Joshua N Pritikin
Date:
October 1, 1999 05:20
Subject:
Re: deprecating SIGDIE
Message ID:
19991001082013.S14723@eq1062.wks.na.deuba.com
On Fri, Oct 01, 1999 at 11:44:56AM +0100, nik@tiuk.ti.com wrote:
> Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
> >What about __EXCEPTION__ for the semantic of "old" __DIE__?
>
> Sigh. Does this mean I would then have to do :
>
> eval { local $SIG{__EXCEPTION__}; # protect against 5.6 style
> local $SIG{__DIE__}; # protect against 5.005 style
> ...
> die "__Tk_break__\n" if (some_condition)
> ...
> };
>
> if ($@ eq "__Tk_break__\n")
>
> If so, may I request a new "keyword" ("thow" would seem to suit)
> which does not have all these bells, whistles, and baroque twiddly
> bits? Can we then change "require" to use "thow" when it cannot load
> something ? So that I can test for availability of things and act
> accordingly.
Isn't it that true that $SIG{__EXCEPTION__} will not be able to *change*
the exception string/object, only record it?
--
"Does `competition' have an abstract purpose?"
via, but not speaking for Deutsche Bank
Thread Previous
|
Thread Next