[erlang-questions] load_file() and purge()
Fri Nov 25 13:20:01 CET 2016
Let's assume there is a module forty_two.beam loaded by VM.
Then the module is updated and hot loaded:
Then let's assume that there is no process using an old version of the
module (for example, the module contains only pure functions).
Despite of that following attempt to update the module fails:
Loading of forty_two.beam failed: not_purged
Is there any rationale why the old code is not automatically purged?
IMO, it would be convenient if _unused_ old version of the code would be
implicitly removed in such case.
More information about the erlang-questions