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 6CE4CBC28 for ; Fri, 5 Nov 2004 14:31:27 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA5DVQQK028813 for ; Fri, 5 Nov 2004 14:31:27 +0100 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 OAA29998 for ; Fri, 5 Nov 2004 14:31:26 +0100 (MET) From: padiolea@irisa.fr Received: from smtp.irisa.fr (smtp.irisa.fr [131.254.254.26]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iA5DVQ5R003910 for ; Fri, 5 Nov 2004 14:31:26 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.irisa.fr (Postfix) with ESMTP id 30948FABD; Fri, 5 Nov 2004 14:31:26 +0100 (CET) Received: from smtp.irisa.fr ([131.254.254.26]) by localhost (meli.irisa.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13245-09; Fri, 5 Nov 2004 14:31:25 +0100 (CET) Received: from mail.irisa.fr (melo.irisa.fr [131.254.254.28]) by smtp.irisa.fr (Postfix) with ESMTP id 9FF42FAA4; Fri, 5 Nov 2004 14:31:25 +0100 (CET) Received: from 80.8.0.152 (SquirrelMail authenticated user padiolea); by mail.irisa.fr with HTTP; Fri, 5 Nov 2004 14:31:25 +0100 (CET) Message-ID: <1065.80.8.0.152.1099661485.squirrel@80.8.0.152> In-Reply-To: <200411051323.13339.wolfgang.mueller2@uni-bayreuth.de> References: <200411051323.13339.wolfgang.mueller2@uni-bayreuth.de> Date: Fri, 5 Nov 2004 14:31:25 +0100 (CET) Subject: Re: [Caml-list] Print values like the toplevel's printer To: Wolfgang =?iso-8859-1?Q?M=FCller?= Cc: "caml-list" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at irisa.fr X-Miltered: at concorde with ID 418B80AE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 418B80AE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; irisa:01 caml-list:01 toplevel's:01 toplevel's:01 irisa:01 cheers:01 caml-list:01 beginner's:01 ocaml:01 beginners:01 bug:01 ...:98 hacks:01 muller:01 short:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.0 X-Spam-Level: > Hi, > > I would like to print values to a file in a human-readable manner without > having to compose the output writers of print_int and friends. In short, I > would like to use the toplevel's function for screen output of structured > values. I recently post a message to allow this (with generic print in the subject of the message). the code is available at: http://www.irisa.fr/prive/padiolea/hacks/generic_print.ml example: let _ = print_string (generic_print [[1;3];[2;9;8];[3;4]] "int list list" in let _ = print_string (generic_print [1;3;2;9;8;3;4] "int list") in ... test: ./test_generic ==> [[1; 3]; [2; 9; 8]; [3; 4]] [1; 3; 2; 9; 8; 3; 4] > > Is there a simple way, a FM or a mailing list you can point me to? > > I googled quite a bit, but apparently not with the right terms. > > Cheers, > Wolfgang > -- > Dr. Wolfgang Müller > LS AI 1 > Universität Bayreuth > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >