<p dir="ltr">In Erlang, two and only two versions of the same module can coexist in the run time system (an old version and a new version). Processes running the old version of the code will keep running that version (even if you load a new version of the module) until they make a fully qualified call to the module itself (I.e. M:F(A)). If you add a third version of the code in the system (e.g. you load a module twice) the "very old" version gets purged and those processes executing the obsolete version get killed. You can also use code:purge and code:soft_purge to "force" this behaviour. Look at the "code" module for more options.</p>

<div class="gmail_quote">On 14 Jun 2013 02:29, "Steve Davis" <<a href="mailto:steven.charles.davis@gmail.com">steven.charles.davis@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Why not make:all([load]).</div><div><br></div><div>???</div><div><br></div>e.g. I have this in my user_default...<div><br></div><div><div>make() -></div><div><span style="white-space:pre-wrap"> </span>{ok, WorkingDir} = file:get_cwd(),</div>
<div><span style="white-space:pre-wrap">  </span>case file:read_file_info("Emakefile") of</div><div><span style="white-space:pre-wrap">               </span>{ok, _} -> io:format("Emake ~p~n", [WorkingDir]);</div>
<div><span style="white-space:pre-wrap">          </span>{error, _} -> io:format("~p~n", [WorkingDir])</div><div><span style="white-space:pre-wrap">       </span>end,</div><div><span style="white-space:pre-wrap">     </span>make:all([load]).</div>
<br><br><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>