tag:blogger.com,1999:blog-1893218858608219953.post440793804211725344..comments2007-06-22T20:08:24.087+10:00Comments on This is me: Erlang Macro OddnessPhilip Robinsonhttp://www.blogger.com/profile/17605642659657207381chlorophil@gmail.comBlogger2125tag:blogger.com,1999:blog-1893218858608219953.post-27586607170864576722007-06-22T20:08:00.000+10:002007-06-22T20:08:00.000+10:00Qrilka: I am guessing that the Erlang preprocessor...Qrilka: I am guessing that the Erlang preprocessor is not flagging the 'fun' keyword as the beginning of a block of code that ends with the 'end' keyword, and instead ends the first statement at the comma (the usual statement terminator).<BR/><BR/>The first argument would then be taken as 'fun() -> io:format(...)' and the second as 'io:format(...) end', which would cause the single-argument A_MACRO macro to choke during expansion.Philip Robinsonhttp://www.blogger.com/profile/17605642659657207381noreply@blogger.comtag:blogger.com,1999:blog-1893218858608219953.post-22633428345794624242007-06-22T15:39:00.000+10:002007-06-22T15:39:00.000+10:00And do you know the reason of such behaviour?And do you know the reason of such behaviour?Qrilkahttp://www.blogger.com/profile/14856370078919907461noreply@blogger.com