Inconsistent catch behaviour

Adam Lindberg adam@REDACTED
Thu Jun 18 10:23:51 CEST 2009


Hi!

How come I can write:

1> catch 1 + a.
2> case catch 1 + a of A -> A end.
3> A = (catch 1 + a).

and even

4> catch 1 + a.
5> A = v(-1).

but not

4> A = catch 1 + a.

?

Cheers,
Adam


More information about the erlang-questions mailing list