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
[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: oliver@f...
Subject: [Caml-list] Error: Type variables, that can not be generalized?!

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?

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: