From: Romain Bardou <bardou@lsv.ens-cachan.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Recursive polymorphic variants
Date: Tue, 10 Apr 2012 16:39:09 +0200 [thread overview]
Message-ID: <4F84460D.1010209@lsv.ens-cachan.fr> (raw)
In-Reply-To: <CAK=fH+hzpMQfnxe6Be-G5A_r-TpVZcyaoi3nwEPndE8dpt=7CQ@mail.gmail.com>
Le 10/04/2012 15:57, David House a écrit :
> On Tue, Apr 10, 2012 at 2:51 PM, Gabriel Kerneis<kerneis@pps.jussieu.fr> wrote:
>> Is there any work-around?
>
> Depending on your requirements, just wrapping up the recursive copy of
> [t] in another constructor might do:
>
> type t = [ `A of [ `B | `C of t ]]
>
> I don't know why your original example is disallowed.
>
I think the semantic of [t|...] is just to syntactically replace t by
its definition, which is not possible if the definition is not done yet.
Cheers,
--
Romain Bardou
prev parent reply other threads:[~2012-04-10 14:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 13:51 Gabriel Kerneis
2012-04-10 13:57 ` David House
2012-04-10 14:39 ` Romain Bardou [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=4F84460D.1010209@lsv.ens-cachan.fr \
--to=bardou@lsv.ens-cachan.fr \
--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