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 OAA14261; Fri, 25 Jun 2004 14:30:18 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA14694; Fri, 25 Jun 2004 14:30:16 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5PCUDSH024046; Fri, 25 Jun 2004 14:30:15 +0200 Received: from [192.168.1.200] (ppp215-31.lns1.syd2.internode.on.net [203.122.215.31]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i5PCU9HY046824; Fri, 25 Jun 2004 22:00:10 +0930 (CST) Subject: Re: [Caml-list] Why must types be always defined at the top level? From: skaller Reply-To: skaller@users.sourceforge.net To: Basile "Starynkevitch [local]" Cc: caml-list In-Reply-To: <20040625110748.GB2707@bourg.inria.fr> References: <20040624194603.2A91010EF06@clark.cs.brown.edu> <1088158825.1941.113.camel@pelican.wigram> <20040625110748.GB2707@bourg.inria.fr> Content-Type: text/plain Message-Id: <1088166608.1941.120.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Jun 2004 22:30:09 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 40DC1AD5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 basile:01 bignums:01 immutable:01 9660:01 glebe:01 ocaml:01 nsw:01 marshal:01 snail:02 checkout:02 objects:02 2037:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 2004-06-25 at 21:07, Basile Starynkevitch [local] wrote: > (there is no slot in custom data to support Ocaml values inside them > neither) Then how does Marshal work on them? > Probably encapsulating such values (or just your bignums) inside > object should work, since objects have immutable identities and > hashcodes. Ah. That's a thought. Thanks! I'll try that. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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