Unification on stateless Objects?
Torsten Anders
t.anders at qub.ac.uk
Tue Jun 3 22:55:12 CEST 2003
On Tue, 2003-06-03 at 20:22, Denys Duchier wrote:
> t.anders at qub.ac.uk (Torsten Anders) writes:
>
> > Just a slight variation of your proposal (thank you!), instead of using
> > names I just put the class itself in the record
>
> A very minor advantage of my version is that it is then possible to
> pickle the stateless representation.
Actually, I pickled classes already. No problem to instantiate them
after loading.
class TestClass
attr a
meth init(a:A<=_) @a=A end
end
{Pickle.save TestClass "tmp/testClass"}
TestClass2 = {Pickle.load "tmp/testClass"}
{New TestClass2 init(a: test)}
Perhaps Mozart meanwhile became even better than its implementors
believe ;-)
Regards,
Torsten
--
Torsten Anders <t.anders at qub.ac.uk>
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs at mozart-oz.org.
More information about the mozart-users
mailing list