From: Michael Wohlwend <micha-1@fantasymail.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ]Caml-list] Types
Date: Sun, 19 Jun 2005 09:09:19 +0200 [thread overview]
Message-ID: <200506190909.19767.micha-1@fantasymail.de> (raw)
In-Reply-To: <ad8cfe7e05061823422585b81f@mail.gmail.com>
On Sunday 19 June 2005 08:42, Jonathan Roewen wrote:
> Hi,
>
> Is it possible to create a record type that has a member which is a
> polymorphic type?
>
> I tried: type rect = { mutable x1: 'a; ... } but that doesn't work.
> Also, type a = A of 'a doesn't seem to work either.
how about:
type 'a rect = { mutable x1:'a }
cheers
Michael
next prev parent reply other threads:[~2005-06-19 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-19 6:42 Jonathan Roewen
2005-06-19 7:09 ` Michael Wohlwend [this message]
2005-06-19 15:37 ` [Caml-list] " Eric Cooper
2005-06-19 18:09 ` padiolea
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=200506190909.19767.micha-1@fantasymail.de \
--to=micha-1@fantasymail.de \
--cc=caml-list@yquem.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).