[erlang-questions] Erlang PP Question
Kannan
vasdeveloper@REDACTED
Wed May 30 11:26:58 CEST 2012
Hi There,
If -define does just string replacement, why it does not let me do the
following?
-define(Z, z() -> io:fwrite("z")).
-define(Y, y() -> io:fwrite("y")).
-define(X, ?Y. ?Z.).
?X
Thanks,
Kannan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120530/ced3baf4/attachment.htm>
More information about the erlang-questions
mailing list