At 5:08 PM -0700 6/26/03, Brent Dax wrote:
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.

Exactly. Resumable exceptions should be under the control of the code throwing the exception, in which case it can stick a resume continuation object into the exception it throws.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to