From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Virgile Prevosto <virgile.prevosto@m4x.org>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] typechecking in 4.05+beta2
Date: Fri, 24 Feb 2017 11:14:41 -0500 [thread overview]
Message-ID: <CAPFanBH-A79yG6u+pk=kCGHQ+M73oQNfvekL20GaiRfhE1MzDg@mail.gmail.com> (raw)
In-Reply-To: <CA+yPOVh=29RCE7cEpZmJgxW7c1KgVJZBO7qt9gAVUyZhTG=n7Q@mail.gmail.com>
Thanks for the bisection work. The related code change reproduces, at
the level of functors, a change in handling of non-generalized
inference variables that was done at the module level in 4.04, and for
which there were a couple similar known regressions. I believe that
the conclusion would be the same here : it is unfortunate that your
code breaks, but we don't expect the new behavior of 4.05 (which plugs
a small soundness hole in the type system) to change to become more
permissive again.
( I posted in essence the same comment on the relevant pull request
discussion: https://github.com/ocaml/ocaml/pull/929#issuecomment-282283191
)
On Fri, Feb 24, 2017 at 3:47 AM, Virgile Prevosto
<virgile.prevosto@m4x.org> wrote:
> Dear list,
>
> 2017-02-22 19:54 GMT+01:00 Virgile Prevosto <virgile.prevosto@m4x.org>:
>> while playing with the new beta, I stumbled upon the following issue.
>> The program below is now rejected by the compiler, while this was not
>> the case with 4.04.
>> [snip]
>
> I've bisected the issue and it is apparently caused by commit
> 2bd22967b that fixes mantis issue 7414, which is about weak type
> variables and first-class modules. I don't know the type-checker well
> enough to understand whether it is possible to accept my example while
> rejecting the one from MPR#7414.
>
> Best regards,
> --
> E tutto per oggi, a la prossima volta
> Virgile
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next prev parent reply other threads:[~2017-02-24 16:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 18:54 Virgile Prevosto
2017-02-24 8:47 ` Virgile Prevosto
2017-02-24 16:14 ` Gabriel Scherer [this message]
2017-02-24 18:19 ` Virgile Prevosto
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='CAPFanBH-A79yG6u+pk=kCGHQ+M73oQNfvekL20GaiRfhE1MzDg@mail.gmail.com' \
--to=gabriel.scherer@gmail.com \
--cc=caml-list@inria.fr \
--cc=virgile.prevosto@m4x.org \
/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