You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to erlang-q...@erlang.org
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
Joe Armstrong
unread,
Oct 8, 2012, 3:09:10 AM10/8/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to József Bérces, erlang-q...@erlang.org
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