caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Frederick Akalin <akalin@akalin.cx>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamldebug and abstract record types
Date: Mon, 22 May 2006 10:05:23 +0100	[thread overview]
Message-ID: <20060522090523.GA7793@furbychan.cocan.org> (raw)
In-Reply-To: <B0430106-0F99-4458-BEA9-54E9EE8B23A7@akalin.cx>

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 "<abstr>", 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


      parent reply	other threads:[~2006-05-22  9:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-21  7:40 Frederick Akalin
2006-05-21  9:57 ` [Caml-list] " Jacques Garrigue
2006-05-22  9:05 ` Richard Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060522090523.GA7793@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=akalin@akalin.cx \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).