From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: serp@stork.ru
Cc: Caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Polymorphic method and polymorphic type
Date: Mon, 17 Mar 2008 21:51:50 +0900 (JST) [thread overview]
Message-ID: <20080317.215150.241958851.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <47DE6364.4080204@stork.ru>
From: SerP <serp@stork.ru>
> but if we use simple variant type instead of polymorphic variants it
> works perfect
>
>
> type 'a get_mode = [ Read | Watch of (#getter as 'a)];;
(Better to avoid revised syntax in such cases, it is confusing here)
I was not aware of that, but this is logical since the problem comes
from expansion, and simple variants do not need to be expanded.
So I should correct my phrasing: explicit polymorphic type variables
inside constrained type parameters of type abbreviations are not
supported.
Jacques Garrigue
next prev parent reply other threads:[~2008-03-17 12:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 10:21 SerP
2008-03-17 12:26 ` [Caml-list] " SerP
2008-03-17 12:51 ` Jacques Garrigue [this message]
2008-03-17 12:37 ` Jacques Garrigue
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=20080317.215150.241958851.garrigue@math.nagoya-u.ac.jp \
--to=garrigue@math.nagoya-u.ac.jp \
--cc=Caml-list@yquem.inria.fr \
--cc=serp@stork.ru \
/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