catch in assignment

Sean Hinde Sean.Hinde@REDACTED
Thu May 18 16:56:38 CEST 2000


All,

Can anyone shed any light on the following behaviour:

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

but

node@REDACTED> 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