[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
RE: __DIE__ and exception hooks
What would that mean for my currently running code:
die [ 1, 2 ];
-----Original Message-----
From: Larry Wall [mailto:larry@wall.org]
Sent: Thursday, January 20, 2000 7:32 PM
To: pjordan1@email.mot.com
Cc: Perl5 Porters
Subject: Re: __DIE__ and exception hooks
Pete Jordan writes:
: > Yes, we do need a module that can be subclassed from for
throwing
: > such exception objects (similar to Tie::Array et al).
The only
: > question now is, are you willing to write it?
:
: Yes, but... I'd like to integrate it with C<die> as I've
described at
: tedious length elsewhere, which make me fall foul of
verboten
: C<$SIG{__DIE__}> munging.
I think you're assuming here that I wouldn't be interested
in making
all exceptions into objects. I presume that's what you want
the
__DIE__ hook for. I'd gladly turn all exceptions into
objects in order
to reduce the desire to __DIE__.
Larry
- Follow-Ups from:
-
Pete Jordan <pjordan1@email.mot.com>
Larry Wall <larry@wall.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]