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.
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.
I thought that warnings were to be implemented as exceptions...
Nope. Warnings are warnings, and exceptions are exceptions. Warnings can be promoted to exceptions if need be, but they're separate things and don't share a common base.
--
Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk