From: Dario Teixeira <darioteixeira@yahoo.com>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Unusual type declaration and Sexplib
Date: Mon, 23 Feb 2009 08:50:45 -0800 (PST) [thread overview]
Message-ID: <81887.54081.qm@web111516.mail.gq1.yahoo.com> (raw)
In-Reply-To: <20090223.192705.191392073.garrigue@math.nagoya-u.ac.jp>
Hi,
> You program below is exactly equivalent to the following,
> without as. Or is your real code something different?
You're right, the formulation without 'as' is simpler, and Sexplib handles
it just fine. The real code adds a phantom type variable to t, and the
advantage of using 'as' was making the phantomness obvious:
type +'a t = private [< 'b node_t ] as 'b
versus
type +'a t = private [< 'a t node_t ]
But in this case, 'as' does raise more trouble than it's worth...
Anyway, issue solved -- thanks!
Best regards,
Dario Teixeira
prev parent reply other threads:[~2009-02-23 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-22 20:59 Dario Teixeira
2009-02-23 10:27 ` [Caml-list] " Jacques Garrigue
2009-02-23 16:50 ` Dario Teixeira [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=81887.54081.qm@web111516.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=caml-list@yquem.inria.fr \
--cc=garrigue@math.nagoya-u.ac.jp \
/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