Browse thread
[Caml-list] Error: Type variables, that can not be generalized?!
- oliver@f...
[
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: | oliver@f... |
| Subject: | [Caml-list] Error: Type variables, that can not be generalized?! |
Hello,
I'm teseting my code in the toplevel, and see no problems.
I use the ocamlc-compiler and it produces this message:
"The type of this expression, ('_a, `_b) Hashtbl.t,
contains type variables that cannot be generalized"
The line, where the problem occured was an unused
Hashtable-Creation.
When I removed that line, or when I added a Hashtbl.add,
the message disappeared.
Why is this a problem?
The line was:
let entry_hash = Hashtbl.create 100000
The added line, which lets the error-message disappears
was:
Hashtbl.add entry_hash "foo" "bar"
Any hints, ewhat the problem is?
Regards,
Oliver
-------------------
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