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 VAA10184; Sun, 27 Jun 2004 21:43:06 +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 VAA09917 for ; Sun, 27 Jun 2004 21:43:05 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5RJh1EV022823 for ; Sun, 27 Jun 2004 21:43:03 +0200 Received: from [192.168.1.200] (ppp217-185.lns1.syd3.internode.on.net [203.122.217.185]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i5RJgwHY042686; Mon, 28 Jun 2004 05:12:59 +0930 (CST) Subject: Re: [Caml-list] file close bug? From: skaller Reply-To: skaller@users.sourceforge.net To: William Lovas Cc: caml-list In-Reply-To: <20040627190417.GA22473@force.stwing.upenn.edu> References: <1088353277.32642.28.camel@pelican.wigram> <1088354007.18587.2.camel@pelican.wigram> <1088354728.18587.4.camel@pelican.wigram> <20040627190417.GA22473@force.stwing.upenn.edu> Content-Type: text/plain Message-Id: <1088365375.18587.15.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 28 Jun 2004 05:42:57 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40DF2345.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 bug:01 sourceforge:01 2004:99 lovas:01 2004:99 arggg:01 bignums:01 bignums:01 closures:01 implemented:01 marshalling:01 9660:01 glebe:01 anyhow:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 2004-06-28 at 05:04, William Lovas wrote: > On Mon, Jun 28, 2004 at 02:45:28AM +1000, skaller wrote: > > On Mon, 2004-06-28 at 02:33, skaller wrote: > > > Marshal may not like classes? > > > > Invalid_argument("output_value: functional value") > > > > Arggg. Its a class, not a functional value .. > > ... which is just a bunch of functions wrapped together :) I'm not using it for that. I have a conflict: I need to marshal a data structure containing bignums out, and, I need to put it in a Hashtabl which won't work with bignums because polymorphic equal fails on abstract types. I wrapped the bignums in a class just to get a comparable id. Now I can't marshal it :( > Isn't this what the Closures flag was implemented for? I'm using native code.. and I don't want to output any functions. All I want is the bignums to be treated like an address for comparison, but written out as a value when marshalling.. It seems the only way to do this is to write an equal function for my terms... anyhow i just deleted the caches .. more grief than they wre worth, and didn't seem to speed anything up anyhow. -- 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