Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Marshalling objects (was: French interactive fiction, anyone ?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-06-19 (15:57)
From: Berke Durak <berke@a...>
Subject: Re: [Caml-list] Marshalling objects (was: French interactive fiction, anyone ?)
On Tue, Jun 18, 2002 at 08:57:23AM +0200, Alan Schmitt wrote:
> * Berke Durak ( wrote:
> > Well, I've written a very small prototype game, using
> > objects. Container objects are somewhat tricky (lots of weird typing
> > errors) but not impossible to define. However, if I can't save the
> > game state, I'll have to trash everything and ``simulate'' a class
> > model using conventional datatypes (not necessarily a bad thing, but I
> > would have been nice to use classical interactive fiction programming
> > style).
> > 
> > So, I have to ask : Will we be able to marshall objects soon ? There
> > seem to be some (unused) code fragments in extern.c...
> Since in some sense objects point to their method code, you're asking
> about the marshalling of code. Some work on this has been done and is
> being done for JoCaml (see ) and might
> be some day integrated with ocaml.
> Best,
> Alan Schmitt

Well, this is not exactly about marshalling code : I'm not asking
Ocaml to be able to transfer pieces of code between different
programs. Just being able to save an object and reload it in the same
executable later would suffice : since Caml can save closures under
the same constraints, the reason why objects can't be saved must be
something else.
Berke Durak
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: