[erlang-questions] Loading code generated on the fly

Vlad Dumitrescu <>
Sat Sep 27 21:00:40 CEST 2008


2008/9/27 Robert Virding <>:
> There is a call code:load_binary(Module, FileName, Binary) which seems to do
> what I want, BUT there is this argument FileName. Now I don't intend to save
> the module in a file unless I really have to as it seems like a bit of
> unnecessary work to save it in a file just so I can load it. What is the
> significance of the FileName argument and does it matter what I set it to?
> Can I just call Module.beam and be done with?

I think so, we do it like this for ErlIDE and didn't had any problems
related to that. Yet. ;-)

best regards,

More information about the erlang-questions mailing list