From: Brian Rogoff <bpr@bpr.best.vwh.net>
To: Nadji.Gauthier@lip6.fr
Cc: John Max Skaller <skaller@ozemail.com.au>, <caml-list@inria.fr>
Subject: Re: [Caml-list] Polymorphic Variants and Number Parameterized Types
Date: Mon, 29 Apr 2002 14:01:29 +0000 (GMT) [thread overview]
Message-ID: <Pine.BSF.4.40.0204291357560.62954-100000@bpr.best.vwh.net> (raw)
In-Reply-To: <Pine.LNX.4.21.0204291537001.22050-100000@singha.lip6.fr>
On Mon, 29 Apr 2002 Nadji.Gauthier@lip6.fr wrote:
> > use variants. Also, I'm willing to bet that you uncovered a bug in the
> > type checker (with the "variables can't be generalized" only when in
> > the compiler). Have you filed a bug report yet?
>
> I haven't. And since I don't fully understand PV typing,
> I prefer not to bother the developers (I fear the
> "this is a feature not a bug" reply :))
Sure, but it is also possible you found a problem and we all could benefit
from its removal.
> But I understand that there may be error when source
> is compiled when there aren't in the interpreter, ex:
> let x = ref []
> When compiled, this gives :
> The type of this expression, '_a list ref,
> contains type variables that cannot be generalized
> And this is perfectly fair (think of 2 different modules
> accessing x, there may be a type clash).
That's right.
> I think the same thing happenned
> in my previous mail but I haven't managed to isolate the problem yet.
I played a bit with your example, and while I haven't isolated the
problem, I found that there is no problem with the reported expression.
The problem only happened when the f_ngt5 (or whatever you called it)
was included and disappeared when it was removed. So it seems like a
genuine bug.
-- Brian
-------------------
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-05-01 15:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-24 21:44 Nadji.Gauthier
2002-04-27 1:17 ` John Max Skaller
2002-04-27 22:44 ` Brian Rogoff
2002-04-28 4:41 ` John Max Skaller
2002-04-29 13:53 ` Nadji.Gauthier
2002-04-29 14:01 ` Brian Rogoff [this message]
2002-04-29 13:35 [Caml-list] Polymorphic Variants and Number Parameterized Typ es Krishnaswami, Neel
2002-04-29 14:16 ` [Caml-list] Polymorphic Variants and Number Parameterized Types Andreas Rossberg
2002-04-29 15:28 ` Francois Pottier
2002-04-29 16:48 ` Andreas Rossberg
2002-04-30 7:07 ` Francois Pottier
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=Pine.BSF.4.40.0204291357560.62954-100000@bpr.best.vwh.net \
--to=bpr@bpr.best.vwh.net \
--cc=Nadji.Gauthier@lip6.fr \
--cc=caml-list@inria.fr \
--cc=skaller@ozemail.com.au \
/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