Benjamin Goldberg:
# Concievably, we could then examine the exception, and maybe decide
that
# it was nonfatal, and resume execution from just after the place it was
# thrown from.

The problem with that is that some exceptions are unresumable.  For
example, exceptions thrown in C code are difficult to resume from,
especially if they represent e.g. a segfault.  Exceptions that represent
things like a file failing to open can be difficult to handle if they're
thrown from an inner routine--you'd need to know where to put the
replacement filehandle.

Perhaps there can be an Exception::Resumable that inherits from both
Exception and Continuation, but I don't think that normal exceptions can
or should be resumable.

--Brent Dax <[EMAIL PROTECTED]>
Perl and Parrot hacker

Reply via email to