[erlang-patches] [erts, stdlib] fix escript/primary archive reloading

Tuncer Ayaz <>
Thu Oct 6 10:23:26 CEST 2011

2011/10/6 Håkan Mattsson <>:
> I do not like that erl_prim_loader has knowledge of escript
> internals. Much of the "new" code is copied from escript.
> It would be better if the caller to set_primary_archive/3 could give
> a fun or MFA as argument which can be executed when the archive
> needs to be re-opened. Then we would avoid this duplication of code.

Shouldn't the modules in erts/preloaded avoid using modules from lib?

What about sharing the code in a new module like

More information about the erlang-patches mailing list