[erlang-questions] For your amusement--why doesn't this compile?

john.hughes@REDACTED john.hughes@REDACTED
Mon Jan 30 16:24:25 CET 2017


Here’s a behaviour that’s had me tearing my hair today. Consider this module:

-module('Aaargh!!').
-define(PLEASE_DONT).
-ifndef(PLEASE_DONT).
-compile({parse_transform,undefined_parse_transform}).
-endif.

It fails to compile, with one simple error message:

20> c('Aaargh!!').
Aaargh!!.erl: undefined parse transform 'undefined_parse_transform'
error

If you can see why, you’re more an Erlang wizard than I am!

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170130/e279632f/attachment.htm>


More information about the erlang-questions mailing list