Packages in Erlang: new documentation

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Fri Sep 5 09:28:51 CEST 2003


>From: "Chris Pressey"
> Why the heck not just use a macro???
>   -define(foo,
>   ...
>   X = ?foo, X:bar().

A very simple and straightforward idea, I think!

A question: should it be
    -define(foo, '').?
Seems to me that only in a call context it works without quotes, or maybe I
didn't RTFM :)

>"Richard A. O'Keefe" wrote:
>> (1) Module names must be completely decoupled from file names.
>>     [This does not mean that you cannot have a _default_ mapping
>>     from module names to file names, only that you cannot have a
>>     _fixed_ mapping.]

As a matter of fact, there is an alternate code loader, where module are not
being mapped to files: Joe's SAE. All modules are tar'ed (or similar) and are
part of the executable.

best regards,

More information about the erlang-questions mailing list