[erlang-questions] Multiple modules
Joe Armstrong
erlang@REDACTED
Thu Oct 5 09:30:05 CEST 2006
Modules ... thoughts
Any opinion about and "endmod." declaration:
Proposal
The file myapp.erl might contain
-module(foo).
....
....
-endmod.
-module(bar).
...
...
-endmod.
Compiling this produces
myapp.beam
loading myapp.beam loads all the code in foo, bar, ..., this
has several advantages:
1) distribute only one file
2) modules in file cannot live a life of their own and become
separated
3) code loading is faster
/Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061005/78b74d93/attachment.htm>
More information about the erlang-questions
mailing list