From: Francois Pottier <Francois.Pottier@inria.fr>
To: Pascal Brisset <brisset@recherche.enac.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] renaming a type
Date: Fri, 14 Sep 2001 08:12:52 +0200 [thread overview]
Message-ID: <20010914081252.A28439@pauillac.inria.fr> (raw)
In-Reply-To: <E15hWun-0008Kr-00@mauve.recherche.enac.fr>; from brisset@recherche.enac.fr on Thu, Sep 13, 2001 at 03:52:25PM +0200
> Unfortunately it does not work is I instantiate a polymorphic type with the
> same idea:
>
> # module M = struct type 'a t = T end;;
> module M : sig type 'a t = T end
> # type t' = int M.t = T;;
> ^^^^^^^^^^^^^^^^
Why not do it in two steps?
# module M = struct type 'a t = T end;;
module M : sig type 'a t = T end
# type 'a t' = 'a M.t = T;;
type 'a t' = 'a M.t = T
# type t'' = int t';;
type t'' = int t'
Clearly very clumsy, of course, but it works.
--
François Pottier
Francois.Pottier@inria.fr
http://pauillac.inria.fr/~fpottier/
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
prev parent reply other threads:[~2001-09-14 6:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-13 13:52 Pascal Brisset
2001-09-14 6:12 ` Francois Pottier [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=20010914081252.A28439@pauillac.inria.fr \
--to=francois.pottier@inria.fr \
--cc=brisset@recherche.enac.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;
as well as URLs for NNTP newsgroup(s).