[erlang-questions] old module
Joe Armstrong
erlang@REDACTED
Mon Oct 8 09:09:10 CEST 2012
erlang:check_old_code(Module) -> boolean()
Types:
Module = atom()
Returns true if the Module has old code, and false otherwise.
(How did I find this? -
> cd <src>/lib/kernel/src
> grep purge *.erl
I found it around line 1401 of code_server.erl
(it's also in the erlang manual page :-)
)
/Joe
On Mon, Oct 8, 2012 at 8:56 AM, József Bérces
<jozsef.berces@REDACTED> wrote:
> Is there any way to tell if an old version of the module already exists? The
> return value of code:delete/1 tells that, but that is too late, I would like
> to know in advance that the module needs purge.
>
> Thanks,
> Jozsef
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list