[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: __DIE__ and exception hooks
Pete Jordan writes:
: 4. unblessed reference
: Bless into an Exception::User object. Maybe. If you're doing
: C<if (ref $@ eq 'ARRAY')> we're stuffed.
Hmm, there is that. I suppose as a bandaid one could set @ARRAY::ISA to
point to an exception class, but that's grody.
: 5. blessed non-Exception object
: If die gets a non-Exception blessed reference, we can't create an object
: inheriting from it and Exception as code may well be checking for its
: class name without using isa, so I suppose all we can do is coerce
: Exception into its inheritance tree and hope for the best...
Might be better to leave 4 and 5 alone, on the assumption people know
what they're doing, having already demonstrated a willingness to buck
the system. :-)
: I wonder how much code there is out there that would be affected by 4.
: or 5.
Dunno. Haven't been able to pass refs through die for all that long.
Though, of course, one hates to make the people who are on the bleeding
edge bleed any more than necessary. But I suppose they could always
invoke the leave_my_stinkin_exceptions_alone_darnit pragma.
Larry
- References to:
-
Pete Jordan <pjordan1@email.mot.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]