From: "Stéphane Glondu" <steph@glondu.net>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: OCaML List Mailing <caml-list@inria.fr>, 790062@bugs.debian.org
Subject: Re: [Caml-list] Change in typing between OCaml 4.01.0 and 4.02.2...
Date: Sun, 28 Jun 2015 19:04:24 +0200 [thread overview]
Message-ID: <55902918.3090401@glondu.net> (raw)
In-Reply-To: <AE50001C-0170-4B78-B699-244C27F069F4@math.nagoya-u.ac.jp>
Le 28/06/2015 11:44, Jacques Garrigue a écrit :
>> I think this is a result of tighter checks against self-references
>> when compiling modules:
>>
>> http://caml.inria.fr/mantis/view.php?id=6886
>
> Indeed, this seems to be the direct cause.
> Note that the behavior of referring to oneself through an external
> name was never properly defined (most often it would already fail
> and even when succeeding it was referring to another definition).
> The correct way to do this is either to duplicate the definition of
> status in both app and query (removing the cyclic dependency),
> or to define it in another file, which can be correctly referred to by both.
I did the latter in a patch that fixes the compilation of monotone-viz:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790062#22
> Yet, we should probably try to improve the error message,
> which is indeed confusing. Not so easy, because this kind of
> self-reference can be detected at very unexpected timings.
> Can you add a comment to the above bug report?
Done.
Cheers,
--
Stéphane
prev parent reply other threads:[~2015-06-28 17:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 18:07 Stéphane Glondu
2015-06-26 19:15 ` Jeremy Yallop
2015-06-28 9:44 ` Jacques Garrigue
2015-06-28 17:04 ` Stéphane Glondu [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=55902918.3090401@glondu.net \
--to=steph@glondu.net \
--cc=790062@bugs.debian.org \
--cc=caml-list@inria.fr \
--cc=garrigue@math.nagoya-u.ac.jp \
/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