changing the module name attribute in a parse transform

Joe Armstrong erlang@REDACTED
Tue Jul 7 21:58:07 CEST 2009


If I change the module attribute in a parse transform I get an error.

The call compile:file("foo.erl", [{parse_transform, bar}])

Generates an error if bar:parse_transform changes the module name
attribute from foo to anything else

Is there an easy work around to this?

I want to change the module name in foo.erl to a new name (say
bar1234) and generate bar1234.beam which when loaded
defines the module bar1234

/Joe


More information about the erlang-questions mailing list