Re: interactive Erlang and parse transforms

"Vlad Dumitrescu" <[email protected]> Fri, 16 Jan 2004 20:20:02 +0100
Newsgroups gmane.comp.lang.erlang.distel.devel
Message-ID <[email protected]>
From: "Gerd Flaig" <[email protected]>
> 2. Pattern matching
>      D = 1.
>       --> 1
>      D.
>       --> 1
>      {ok, E} = {ok, foo}.
>      Error: {{error,{1,erl_parse,["syntax error before: ",["D"]]}},
>       {error,{2,erl_parse,["syntax error before: ",["'--'"]]}}}

Strange, when {ok, E}... is the first expression in the buffer, it works
fine. So it's not pattern matching that's missing, but there's a bug in the
evaluator, probably getting too much text.

/Vlad


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn