From: Philippe Veber <philippe.veber@gmail.com>
To: Leo White <lpw25@cam.ac.uk>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Typing of a parameterized class where the type parameter is the type of self.
Date: Thu, 30 Oct 2014 17:13:50 +0100 [thread overview]
Message-ID: <CAOOOohTNKmD2=EZ+RzecmeBgZe3cMzJ5cKTuqzCn_QuAQeWO1w@mail.gmail.com> (raw)
In-Reply-To: <86egtp7d8u.fsf@cam.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
OK, thanks a lot Leo. I'll report that on mantis to keep track of that.
Cheers,
ph.
2014-10-30 17:07 GMT+01:00 Leo White <lpw25@cam.ac.uk>:
> > This was an easy way to say that the polymorphism of m was not captured
> by 'a. I don't want to abuse your time, but if
> > you have a tiny example illustrating when this automatic promotion is
> indeed useful, I'd be curious to see it. In any
> > case, many thanks for the fix, which I'll use right away.
>
> I think that the automatic promotion is just for convenience to avoid
> writing "'a . ..." on lots of methods. Your example should probably be
> considered a bug since the promotion should really only happen when the
> method type is genuinely polymorphic, but I don't know how easy it is to
> fix.
>
> Regards,
>
> Leo
>
[-- Attachment #2: Type: text/html, Size: 1190 bytes --]
prev parent reply other threads:[~2014-10-30 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 14:51 Philippe Veber
2014-10-30 15:19 ` Leo White
2014-10-30 16:00 ` Philippe Veber
2014-10-30 16:07 ` Leo White
2014-10-30 16:13 ` Philippe Veber [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='CAOOOohTNKmD2=EZ+RzecmeBgZe3cMzJ5cKTuqzCn_QuAQeWO1w@mail.gmail.com' \
--to=philippe.veber@gmail.com \
--cc=caml-list@inria.fr \
--cc=lpw25@cam.ac.uk \
/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