From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: rossberg@ps.uni-sb.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Records typing
Date: Wed, 13 Nov 2002 11:41:05 +0900 [thread overview]
Message-ID: <20021113114105Z.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20021113101131D.garrigue@kurims.kyoto-u.ac.jp>
Follow-up to myself:
> # module M' = struct type t = float type r = {f : t} end;;
> module M' : sig type t = float and r = { f : t; } end
There is actually a bug: depending on what is the definition, it is
either in the interpretation of type declaration or in the
pretty-printer.
# module M : sig type t = float and r = { f : t; } end = M';;
Signature mismatch:
Modules do not match: [...]
That is, the signature printed is not a valid interface for the above
module. And the fix to the printer would not be easy.
But the printer is known to have a number of such bugs.
And if we were to fix instead the interpretation of type definitions,
using unboxed represention even for mutually recursive definitions,
then it would become impossible to represent the situation were a
record of float has a boxed representation, which can arise from
signature instanciation, as in the original post.
Most unfortunate.
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-11-13 2:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 12:57 malc
2002-11-11 11:43 ` Andreas Rossberg
2002-11-13 1:11 ` Jacques Garrigue
2002-11-13 2:41 ` Jacques Garrigue [this message]
2002-11-13 14:48 ` Andreas Rossberg
2002-11-13 9:55 ` malc
2002-11-13 10:08 ` Jacques Garrigue
2002-10-24 10:55 ` Christophe Raffalli
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=20021113114105Z.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=rossberg@ps.uni-sb.de \
/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