[erlang-questions] Why doesn't erl_eval compile code?

Tony Arcieri tony@REDACTED
Tue Jul 7 01:53:56 CEST 2009


On Sun, Jul 5, 2009 at 5:11 PM, Robert Virding <rvirding@REDACTED> wrote:

> - If you remove the module when you are done, which you must explicitly do,
> then there could be some problem with funs if you have passed them on and
> they still are in use as they will not work after their module has been
> removed.


So here's a question... if I code:soft_purge a module which was used to
create funs which are still in scope in some process somewhere, will that
call to soft_purge fail with false?

If so, as a hack I could have a "garbage collector" process which tries to
soft purge the temporary modules periodically until it succeeds.

This is a far uglier solution that I thought it would be when I started out,
though :(

Would it work though?

-- 
Tony Arcieri
medioh.com


More information about the erlang-questions mailing list