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

Re: __DIE__ and exception hooks



Gurusamy Sarathy wrote:

> D. Make the exception object overload stringify.

Teach me not to keep track of recent additions to Perl... ;)

That works a treat.

> 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. Still, I suppose I can split it into two
modules; a basic exception creation-and-access package and an
integration package that people can use or not according to their purity
and innocence.

So.

I'll post a new root message as an RFC tomorrow (it's 17:45 here and
I've a 50 mile drive home from work).

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.'"


Follow-Ups from:
Larry Wall <larry@wall.org>
References to:
Gurusamy Sarathy <gsar@ActiveState.com>

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