[erlang-questions] overriding code in another application

Serge Aleynikov <>
Sat Feb 13 14:31:31 CET 2016


​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?

On Fri, Feb 12, 2016 at 9:19 AM, Vlad Dumitrescu <> wrote:

> Hi!
>
> 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.
>
> 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.
>
> 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?
>
> best regards,
> Vlad
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160213/a6eb487e/attachment.html>


More information about the erlang-questions mailing list