[erlang-questions] Start module

Bob Ippolito bob@REDACTED
Sun Apr 1 19:28:37 CEST 2007

On 4/1/07, Fredrik Hoback <fredrik.hoback@REDACTED> wrote:
> Hi, I have a project that I'm working on which consists of several modules.
> These has to be loaded ( l(my_module). ) and started in a special order.
> Since I have 5 modules it is cumbersome to do this every time. Is it
> possible to construct a new module that does this? It should first load some
> modules then start them?

Modules are loaded automatically when a function is called in them.
You shouldn't need to explicitly load the module unless you're trying
to replace the current version with a new beam file.

It sounds like what you want to do is write a supervisor...


More information about the erlang-questions mailing list