<div dir="ltr">Hi Serge,<div><br></div><div>This is more or less what I do, except that each version is compiled as a separate application. This makes it easy to build with rebar. I suppose that I don't really have to start those applications, just make the code available in the code path. Thanks!</div><div><br></div><div>best regards,</div><div>Vlad</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 2:31 PM, Serge Aleynikov <span dir="ltr"><<a href="mailto:serge@aleynikov.org" target="_blank">serge@aleynikov.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​How about compiling code by different compiler versions and putting the produced beams into version-specific directories. ​Then at run time either add the proper versioned directory's path into ERL_LIBS, provide it explicitely via "-pa", or add it dynamically at run-time via the code:add_patha/1 call?</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Feb 12, 2016 at 9:19 AM, Vlad Dumitrescu <span dir="ltr"><<a href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi!<div><br></div><div>I need to be able to distribute a version of the debugger in a way that works with R15+, and this is how I made it work: have a general my_debugger application that contains common code and dummy modules that are implemented in separate applications (my_debugger_15 to my_debugger_18), each compiled with the respective compiler.</div><div><br></div><div>My idea is that I start 'my_debugger' and dynamically the right 'my_debugger_X' and the dummy modules will get reloaded from the _X application. </div><div><br></div><div>So far it seems to work, but I wonder if there may be some details that I don't see and that would make this a no-go. I won't use releases, but the applications might get stopped. Has anyone ever tried or thought about this?</div><div><br></div><div>best regards,<br></div><div>Vlad</div><div><br></div></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>