From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA21122; Wed, 19 Jun 2002 17:57:23 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA21069 for ; Wed, 19 Jun 2002 17:57:23 +0200 (MET DST) Received: from gogol.zorgol (Mix-Montsouris-110-1-28.abo.wanadoo.fr [193.248.188.28]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g5JFvLj27869 for ; Wed, 19 Jun 2002 17:57:21 +0200 (MET DST) Received: (qmail 27895 invoked by uid 1001); 19 Jun 2002 15:56:54 -0000 Date: Wed, 19 Jun 2002 17:56:54 +0200 From: Berke Durak To: Alan Schmitt Cc: caml-list@inria.fr Subject: Re: [Caml-list] Marshalling objects (was: French interactive fiction, anyone ?) Message-ID: <20020619175654.A14466@gogol.zorgol> References: <20020617233800.C16032@gogol.zorgol> <20020618065723.GJ4232@alan-schm1p> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020618065723.GJ4232@alan-schm1p>; from alan.schmitt@inria.fr on Tue, Jun 18, 2002 at 08:57:23AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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