[erlang-questions] old module
Mon Oct 8 09:09:10 CEST 2012
erlang:check_old_code(Module) -> boolean()
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 :-)
On Mon, Oct 8, 2012 at 8:56 AM, József Bérces
> 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.
> erlang-questions mailing list
More information about the erlang-questions