From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4B478BC32 for ; Tue, 15 Mar 2005 13:51:46 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2FCpjsR020993 for ; Tue, 15 Mar 2005 13:51:45 +0100 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 NAA09252 for ; Tue, 15 Mar 2005 13:51:45 +0100 (MET) Received: from ryxa.irisa.fr (ryxa.irisa.fr [131.254.50.45]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2FCpj05001487 for ; Tue, 15 Mar 2005 13:51:45 +0100 Received: (from pad@localhost) by ryxa.irisa.fr (8.11.6/8.11.6) id j2FCpfU32544; Tue, 15 Mar 2005 13:51:41 +0100 X-Authentication-Warning: ryxa.irisa.fr: pad set sender to padiolea@irisa.fr using -f Sender: pad@ryxa.irisa.fr To: Christian Stork Cc: Caml List Subject: Re: [Caml-list] Printing values References: <20050315042519.GA26681@anthony.ics.uci.edu> From: Yoann Padioleau Date: 15 Mar 2005 13:51:41 +0100 In-Reply-To: <20050315042519.GA26681@anthony.ics.uci.edu> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce with ID 4236DA61.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4236DA61.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 irisa:01 debugger:01 toplevel:01 irisa:01 rennes:01 hacks:01 writes:01 data:02 data:02 uci:02 types:02 chris:05 formatter:05 formatter:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Christian Stork writes: > This must be a dumb question, but I couldn't find an answer. > > How can I print values of my own data types in the default way, eg, as > the debugger or the toplevel does it? Is there a standard formatter > that I can use (or generate), or do I have to write a new formatter for > each data type? you can try this: http://www.irisa.fr/prive/padiolea/hacks/generic_print.ml or this (better): http://www.seedwiki.com/wiki/shifting_focus/tywith > > Thanks, > Chris -- Yoann Padioleau, INSA de Rennes, France www.irisa.fr/prive/padiolea/ Opinions expressed here are only mine. Je n'écris qu'à titre personnel. **____ Get Free. Be Smart. Simply use Linux and Free Software. ____**