Dear Torsten,

On Tue, Jun 30, 2009 at 4:14 PM, Torsten Anders <
[email protected]> wrote:

> On 30 Jun 2009, at 14:01, Raphael Collet wrote:
>
> This happens all the time when you use the OPI, if you reload a module with
> Module.link without having stopped the emulator.  The former loaded module
> becomes out of lexical scope, and may be garbage collected.
>
>
> I see, of course.
>
> So, just to summarise: you would argue that few people ran into problems
> with re-linking the same functors multiple times, therefore no additional
> procedures are needed for Mozart?
>

I never ran into such problems.  The reason is simple.  I know two cases
where a module has some internal state.  The first one is the case of Mozart
internal modules (like DP), and those use some tricks to not be applied
twice.

The other case is a regular application module.  But in that case, I
unconsciously design my application to avoid linking such a module twice.
Mozart sort of encourages good design ;-)

Anyway, I am not against adding a "permanent" module manager besides
Module.link.

Cheers,
raph
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to