On Mon, 02 Jul 2007 10:14:33 +0200, Raphael Collet
<[EMAIL PROTECTED]> wrote:
Dear Pavel,
It seems that creating several instances of a *native* functor is not a
good idea. I suggest you modify your functor such that the module is
unique. The idea is to encapsulate the state in a data structure, and
not in the module itself. You can then create your objects G and H as
[M]={Module.link ['object.so{native}']}
G={M.new ...}
H={M.new ...}
G and H can be defined as extensions (see the documentation on how to
create extensions to the language at
http://www.mozart-oz.org/documentation/apptut/node19.html#part.foreign.extensions).
Oh well, I guess I will have to rewrite that module.
Thanks anyway.
/pavel
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users