R = catch foo() ?

Ulf Wiger <>
Fri Mar 14 23:00:57 CET 2003


On Fri, 14 Mar 2003, Shawn Pearce wrote:

>Why is this ok:
>
>	case catch foo() of
>		R -> ....
>	end.
>
>and this is not?
>
>	R = catch foo(),
>	....

It has to do with the precedence rules in the parser.
Try this:

   R = (catch foo()),
   ...

/Uffe
-- 
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson AB, Connectivity and Control Nodes




More information about the erlang-questions mailing list