English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 (berke@altern.org) 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 http://pauillac.inria.fr/jocaml/ ) 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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners