Macros and keywords, R9C2

Thomas Lindgren <>
Wed Sep 8 16:08:43 CEST 2004


You currently can't define macros with the same name
as keywords:

-define(begin, 4711).
-define(end,  11147).

% compiler complains "badly formed define"

However, this restriction is, as far as I can see,
unnecessary: the namespaces are entirely distinct.
That is, when you subsequently use the macro, it will
be written '?begin', which will never be confused with
plain 'begin'. 

Hence, I report this as a bug.

Best,
Thomas



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 



More information about the erlang-bugs mailing list