English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2003-02-20 (19:45)
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 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