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 NAA02644; Tue, 5 Feb 2002 13:32:49 +0100 (MET) 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 NAA02655 for ; Tue, 5 Feb 2002 13:32:48 +0100 (MET) Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g15CWl913477 for ; Tue, 5 Feb 2002 13:32:47 +0100 (MET) Received: from pop-serv.inrialpes.fr (pop-serv.inrialpes.fr [194.199.18.66]) by ebene.inrialpes.fr (8.11.6/8.11.6) with ESMTP id g15CWUJ22429 for ; Tue, 5 Feb 2002 13:32:30 +0100 (MET) Received: from inrialpes.fr (cime.inrialpes.fr [194.199.23.76]) by pop-serv.inrialpes.fr (8.10.2+Sun/8.11.3/ImagV2) with ESMTP id g15CWTK11609 for ; Tue, 5 Feb 2002 13:32:29 +0100 (MET) Message-ID: <3C5FD0DE.9E3913FB@inrialpes.fr> Date: Tue, 05 Feb 2002 13:32:30 +0100 From: Frederic Tronel X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Classes and marshaling References: <3C5EAF9B.E0B25E1@inrialpes.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Frederic Tronel wrote: > > Is it possible to serialize an object ?? > In the toplevel: > > Objective Caml version 3.04 > > # open Marshal ;; > # class a = object end ;; > class a : object end > # to_string (new a) [] ;; > Exception: Invalid_argument "output_value: object value". > # > > Best regards, > > Frederic Tronel. > ------------------- > Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr After having taken a look at the source code (byterun/extern.c), it seems that caml value tagged with Object_tag (that is object) are simply ignored (an exception is raised). Is there any chance to see object serialization being implemented in the near future ?? By the way I did not find any reference about this problem in the documentation (in the book by chailloux, manoury and pagano, they mention that abstract types cannot be serialized, but it seems they do not mention objects). Best regards, Frederic Tronel. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr