R = catch foo() ?

Shawn Pearce <>
Fri Mar 14 23:10:26 CET 2003


Ok, something must be up with my mailing list subscription.
Both Ulf and Luke responded to me before I received my
original message back from the mailing list.  :)

Thanks for the clarification, that makes sense.


Ulf Wiger <> wrote:
> 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

-- 
Shawn.

  It is a wise father that knows his own child.
  		-- William Shakespeare, "The Merchant of Venice"



More information about the erlang-questions mailing list