From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 22F82BC28 for ; Fri, 5 Nov 2004 19:54:32 +0100 (CET) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA5IsV9T009417 for ; Fri, 5 Nov 2004 19:54:31 +0100 Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 27478C368F0; Fri, 5 Nov 2004 13:54:30 -0500 (EST) X-Sasl-enc: o+YQv2jyfEFdoJS1uBn10g 1099680867 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by frontend2.messagingengine.com (Postfix) with ESMTP id 194B4570147; Fri, 5 Nov 2004 13:54:26 -0500 (EST) Date: Fri, 5 Nov 2004 10:54:28 -0800 (PST) From: Martin Jambon X-X-Sender: martin@localhost To: =?iso-8859-1?Q?Wolfgang_M=FCller?= Cc: padiolea@irisa.fr, , Subject: Re: [Caml-list] [Too hard?] Print values like the toplevel's printerI In-Reply-To: <35177.217.84.62.245.1099678046.squirrel@btn1x1.inf.uni-bayreuth.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Miltered: at concorde with ID 418BCC67.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevel's:01 wrote:01 criticizing:01 toplevel:01 rauglaudre:01 wrote:01 ioxml:01 syntax:01 muller:01 simpler:01 functions:01 century:98 jambon:02 jambon:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.0 X-Spam-Level: On Fri, 5 Nov 2004, Wolfgang Müller wrote: > > why don't you like this solution ? is it because it is slow ? ugly ? > > I think your solution gives me the feeling that there must be something > simpler than that. > > This is not criticizing you, it is rather a question to the Caml people, > like e.g. X. Leroy and colleagues and/or the ExtLibs: > > (Why?) is there no really simple way getting the print functionality of > the standard toplevel? Daniel de Rauglaudre wrote a Camlp4 extension that lets you export (and import) non-circular data to XML (it reads type definitions and uses this to insert the ad hoc export/import functions). This is called IoXML. Maybe it has not been updated for the 3.08 version of Camlp4. It should be not too difficult to adapt it for printing data with an OCaml-compliant syntax. Martin -- Martin Jambon, PhD Researcher in Structural Bioinformatics since the 20th Century The Burnham Institute http://www.burnham.org San Diego, California