Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] Error: Type variables, that can not be generalized?!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: artboreb@n...
Subject: RE: [Caml-list] Error: Type variables, that can not be generalized?! (Oliver Bandel) wrote:

Easy, when you add to the code the line adding an element
to the hash table you've also tell to the type system that
the hash table had a concrete type. Same problem will be
raised with an empty list [] wich is never used.



>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
>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
>   Hashtbl.add entry_hash "foo" "bar"
>Any hints, ewhat the problem is?
>   Oliver
>To unsubscribe, mail Archives:
>Bug reports: FAQ:
>Beginner's list:

Arturo Borquez

The NEW Netscape 7.0 browser is now available. Upgrade now! 

Get your own FREE, personal Netscape Mail account today at
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: