What decides the name of a module?

Roger Price rprice@REDACTED
Sun Jul 6 00:21:58 CEST 2003


> Matthias Lang wrote:
>
> > The convention is that the module name matches the file name. If you
> > want to break that convention, you have to provide your own code
> > loading mechanism.

Hello Matthias, Thanks for the clarification.  It seems to me that this
convention is fundamental to Erlang.  I think it would be helpful if the
compiler issued a stern warning if it found -module(x) in file y.erl and
x/=y.

Roger





More information about the erlang-questions mailing list