[erlang-questions] erl/werl module loading

Ulf Wiger ulf@REDACTED
Sat Sep 22 16:09:17 CEST 2007

The easiest (albeit a bit blunt) way to accomplish this is
to add "-mode embedded" after "werl.exe".

This will cause all modules in kernel and stdlib (and whatever
other applications exist in your boot script) to be loaded
at boot time.

It also disables dynamic code loading, so a call to a module
which is not already loaded, will result in an 'undef' exception,
even if the module exists in the path.

(In ancient times, there existed a "-mode test", which loaded all
modules in the boot script, but didn't disable dynamic code
loading. It has been removed).

Ulf W

2007/9/22, Alex Alvarez <eajam@REDACTED>:
> My excuses in advance if by any chance someone else has asked about it
> before, and I'm just repeating.
>  I was wondering, as an old programmer, but complete newbie to erlang, how
> could I change which modules load up by default on erl/werl? I would like to
> get, for example, some additional modules from stdlib to load by default,
> like win32reg.
>  Thanks!
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list