Bug methinks :-)

Vlad Dumitrescu <>
Tue Apr 9 12:53:35 CEST 2002


Hi,

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?

regards,
Vlad

>If I define a couple of macros
>
>-define(Entry(X, Y), (Y:X)).
>...snip...
>But amazingly
>
>	> 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. 
http://www.hotmail.com/sv




More information about the erlang-questions mailing list