From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA13071; Thu, 20 Feb 2003 20:45:05 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA13180 for ; Thu, 20 Feb 2003 20:45:04 +0100 (MET) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1KJj3H19198 for ; Thu, 20 Feb 2003 20:45:03 +0100 (MET) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id h1KJj2Rd002212 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Thu, 20 Feb 2003 20:45:03 +0100 Received: from first.UUCP (uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id h1KJj1N1002205 for inria.fr!caml-list; Thu, 20 Feb 2003 20:45:01 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: inria.fr!caml-list Received: by first.in-berlin.de via sendmail from stdin id (Debian Smail3.2.0.114) Thu, 20 Feb 2003 20:50:05 +0100 (CET) From: oliver@first.in-berlin.de (Oliver Bandel) Date: Thu, 20 Feb 2003 20:50:05 +0100 To: caml-list@inria.fr Subject: [Caml-list] Error: Type variables, that can not be generalized?! Message-ID: <20030220195004.GA1030@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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