[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: A common base exception object for Perl - RFC
>>>>> "Larry" == Larry Wall <larry@wall.org> writes:
Larry> That's the plan.
I remember that being the plan. I also remember volunteering for that
plan (tuits, oh tuits, wherefore art thou, tuits?). :/
I was more wondering if Pete knew that was the plan :)
[...]
Larry> It could be made to stay an object, if $@->STRINGIFY
Larry> returns an lvalue. That probably makes more sense than
Larry> denaturing $@, since other code may rely on $@ remaining an
Larry> object.
Larry> Larry
My immediate reaction was to make $@ read-only, but then I remembered
I was the one who woke the Backward Compatibility police up. :)
I think applying substitution (as opposed to just applying a regex)
should mean that all bets are off about $@ being an object. If you're
playing games with the text in $@, you're probably doing other
maliciousness too that is also going to break in the face of
$@-as-object.
--
Stephen
"And what do we burn apart from witches?"... "More witches!"
- References to:
-
Larry Wall <larry@wall.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]