From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 BD925BB83 for ; Mon, 22 May 2006 11:05:28 +0200 (CEST) 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 k4M95Sbc004393 for ; Mon, 22 May 2006 11:05:28 +0200 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 LAA09170 for ; Mon, 22 May 2006 11:05:27 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4M95Q8c004390 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 22 May 2006 11:05:27 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1Fi6Lr-0003ce-00; Mon, 22 May 2006 10:05:23 +0100 Date: Mon, 22 May 2006 10:05:23 +0100 To: Frederick Akalin Cc: caml-list Subject: Re: [Caml-list] ocamldebug and abstract record types Message-ID: <20060522090523.GA7793@furbychan.cocan.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at nez-perce with ID 44717ED8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44717ED6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamldebug:01 flamewar:01 mli:01 debugger:01 abstr:01 perl's:01 notepad:01 2006:98 wrote:01 caml-list:01 abstract:01 abstract:01 data:02 defining:02 defined:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Sun, May 21, 2006 at 12:40:20AM -0700, Frederick Akalin wrote: > At the risk of starting another flamewar, I have another question. I > notice that if I have a record type that's defined in an .mli file, I > am able to print objects of that type and see its contents in the > debugger. However, if I make that type abstract (only defining it in > the .ml file), I am unable to do so, instead seeing "", unless > I am in the .ml file where the type is defined. Another solution -- not very elegant -- is to use the Std.dump function from Extlib. It's similar in principle to Perl's Data::Dumper. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com