[erlang-questions] The -module line
Fri Nov 21 14:13:56 CET 2014
On 11/21/2014 03:06 PM, Joe Armstrong wrote:
> On Fri, Nov 21, 2014 at 12:21 PM, Loïc Hoguin <> wrote:
>> Something has been bugging me for a very long time now.
>> The -module line is mandatory. It also must be the same as the file name
>> minus the extension .erl or compilation fails.
> Not quite.
I should have been more clear, I was talking about the Erlang compiler
(erlc), not individual compiler modules. I do not know where the check
occurs exactly, but it is done at least when using erlc.
More information about the erlang-questions