PDD23 Exceptions question about embedding

Jeff Horwitz jeff at smashing.org
Sun Dec 14 16:33:07 UTC 2008


On Sat, 13 Dec 2008, Stephen Weeks wrote:

> PDD23 currently says:
>
>    When running an embedded Parrot interpreter, the interpreter does not
>    immediately terminate on an unhandled exception, it merely returns
>    control to the embedding program and stores the unhandled exception so
>    that it may be queried by the embedding program. The embedding program
>    may choose to handle the exception and continue execution by invoking
>    the exception's continuation.

for mod_parrot i can confirm that an unhandled non-fatal exception does 
not terminate the process.  it spits out a back trace on stderr and 
returns control to the embedding program.  i haven't tried to handle the 
exceptions yet, but it's on my list.

-jeff


More information about the parrot-dev mailing list