Browse thread
[Caml-list] Polymorphic Variants and Number Parameterized Types
-
Nadji.Gauthier@l...
-
John Max Skaller
-
Brian Rogoff
- Nadji.Gauthier@l...
- John Max Skaller
-
Brian Rogoff
-
John Max Skaller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Nadji.Gauthier@l... |
| Subject: | Re: [Caml-list] Polymorphic Variants and Number Parameterized Types |
> 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 :)) 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). I think the same thing happenned in my previous mail but I haven't managed to isolate the problem yet. Nadji ------------------- 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