From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: cstork@ics.uci.edu
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Polymorphic variants in the debugger
Date: Fri, 30 Sep 2005 07:31:51 +0300 (EEST) [thread overview]
Message-ID: <20050930.073151.108743127.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <20050929194435.GA9903@anthony.ics.uci.edu>
From: Christian Stork <cstork@ics.uci.edu>
> What does it mean if the debugger prints a polymorphic variable as
>
> (ocd) print v
> v : [> `SomeVariantType.... ]
> = <variant>
>
> instead of its concrete content? Is the debugger lacking some
> information? I know that for simple programs the debugger prints the
> concrete value.
It is the same phenomenon as
v : 'a = <poly>
Namely, due to polymorphism, the debugger only knows about part of the
possible tags for v. If the actual tag is not in this list, it will
only print <variant>.
Jacques Garrigue
prev parent reply other threads:[~2005-09-30 4:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 19:44 Christian Stork
2005-09-30 4:31 ` Jacques Garrigue [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=20050930.073151.108743127.garrigue@math.nagoya-u.ac.jp \
--to=garrigue@math.nagoya-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=cstork@ics.uci.edu \
/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