[erlang-questions] Why doesn't erl_eval compile code?
Thu Jul 9 00:46:47 CEST 2009
Sorry, don't know about soft_purge. In my time we were hard. :-)
The basic problem is that you are trying to use the code system in a way we
never intended. To do this properly as you intend would mean a rewrite of
the code system, which would probably result in changes all over the place.
But it would be more beautiful. :-(
2009/7/7 Tony Arcieri <>
> On Sun, Jul 5, 2009 at 5:11 PM, Robert Virding <> 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
> 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
More information about the erlang-questions