catch in assignment

Sean Hinde <>
Thu May 18 16:56:38 CEST 2000


All,

Can anyone shed any light on the following behaviour:

> A = catch 1.
** 3: syntax error before: 'catch' **

but

> A = (catch 1).
1

It doesn't strike me as ambiguous to assign the result of a catch to a
variable directly...

Sean



More information about the erlang-questions mailing list