[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: __DIE__ and exception hooks



Larry Wall wrote:

> 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__.

That would be ideal - all my C<$SIG{__DIE__}> handler here does for
non-reference parameters is join its parameters, strip out the "at
<file> line <line>" stuff (as I use C<caller> to get that in my
exception code) and C<goto &raise>.

Pete
-- 
use Disclaimer::Standard;	# Motorola GSM Software Factory
my $phone='+44 1793 564450';	# "'Not twisted,' Salzy once said of
my $fax='+44 1793 566918';	#  her own passion, 'it is helical.
my $mobile='+44 7973 725120';	#  That sounds better.'"


References to:
Larry Wall <larry@wall.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]