[erlang-questions] Re: Calling external modules from a fun

Alessandro Sivieri <>
Thu Apr 29 10:10:45 CEST 2010


Ok, now I'm playing a bit with the "code" module: I have found out that I
can send and load a module binary code more than once, without any problem,
so I wanted to ask what happens if I load a module with the same name twice,
but each time with different source code (for example, an updated module):
does this work like when a module is recompiled during execution? That is,
the new code is used only if invoked as module:function? And what if I load
a module (always through the code:load_binary) already present in the code
path of the interpreter?

Thanks for your answers so far!

-- 
Sivieri Alessandro

http://www.chimera-bellerofonte.eu/
http://www.poul.org/


More information about the erlang-questions mailing list