[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: A common base exception object for Perl - RFC
"Redford, John" wrote:
> Ugh.. my stupid mailer strikes again.
/All/ mailers are stupid. The one at home (Ameol2) uses "In-reply-to:"
for threading and doesn't deal properly with "References:" lines, here
at work I use Netscape (hey! the alternative is firing up WinFrame and
Outlook 2000; which would you use?) which ignores "In-reply-to:" and
doesn't let me default the "To:" address for replies in mailboxes I use
for mailing lists. Sooner or later, I'm going to forget to edit "To:" to
p5p and reply only to the poster. Hell, I may well have done it already
without realising...
> Why say
> $@->isa('PerlError') and $@->CriticalError
> instead of
> $@->isa('CriticalError')
> ?
Fair point, again. An alternative would be (given that
C<$@->isa(Exception)> will it seems always be true) to have a C<class>
method that would default to the package name but be settable to an
arbitrary string. Perl could use the latter facility for internal error
categorisation. You'd lose any hierarchy of exception classes but gain
performance by not having to do isa searches.
Pete
--
use Disclaimer::Standard;
my $phone='+44 1793 564450'; # "THIS IS THE COMPATIBILITY
my $fax='+44 1793 566918'; # POLICE. RESTORE YOUR ORIGINAL
my $mobile='+44 7973 725120'; # TOKE.C AND BACK AWAY SLOWLY."
- Follow-Ups from:
-
Larry Wall <larry@wall.org>
- References to:
-
"Redford, John" <John.Redford@fmr.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]