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

RE: __DIE__ and exception hooks



No, as Pete pointed out, my current code tests to see if 'ref $@' is
'ARRAY'. That would break.

-----Original Message-----
From: Larry Wall [mailto:larry@wall.org]
Sent: Friday, January 21, 2000 11:52 AM
To: John.Redford@fmr.com
Cc: 'Larry Wall'; pjordan1@email.mot.com; Perl5 Porters
Subject: Re: __DIE__ and exception hooks


Redford, John writes:
: What would that mean for my currently running code:
: 	die [ 1, 2 ];

Objecthood in Perl is orthogonal to data structure.  Perl could turn [1,2]
into an object, and you'd be none the wiser until you tried to call a
method on it.  Mind you, the default STRINGIFY method for the default
exception class might be a little surprised to get such a value, but
at worst you'd get an error message like ARRAY(0x239d8), and at best,
we will have provided a way to set a default ARRAY->STRINGIFY method
by then.

Larry


Follow-Ups from:
Dan Sugalski <dan@sidhe.org>

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