Bug methinks :-)
Tue Apr 9 12:53:35 CEST 2002
your program works with
-define(Entry(X, Y), Y:X).
but I think it isn't _that_ bug you are referring to :-)
It is very weird to see that there is no error in the second case... My
guess is that erl_lint is not run when compiling with -P, and the
parantheses are removed in the process. Should it work with parantheses?
>If I define a couple of macros
>-define(Entry(X, Y), (Y:X)).
> > erlc -P bug.erl
> > mv bug.P bug1.erl
> > erlc bug1.erl
>Compiles correctly - which is not what I had expected.
Kom med i världens största e-posttjänst; MSN Hotmail.
More information about the erlang-questions