try-catch doesn't work in werl

John Hughes john.hughes@REDACTED
Tue Sep 8 15:10:14 CEST 2009


Here's an example in erl:

1> try throw(foo) catch A:B -> {A,B} end.
{throw,foo}

Here's the same example in werl:

20> try throw(foo) catch A:B -> {A,B} end.
** exception throw: foo

exits and errors behave the same way--the exception is not caught when the 
try...catch is evaluated in the shell.

I'm running emulator version 5.7.2 (in both cases!) and OTP release R13B01, 
under Vista.

John Hughes 



More information about the erlang-bugs mailing list