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 BAA20028; Fri, 21 Feb 2003 01:24:17 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA19876 for ; Fri, 21 Feb 2003 01:24:16 +0100 (MET) Received: from imo-d05.mx.aol.com (imo-d05.mx.aol.com [205.188.157.37]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1L0OFT06812 for ; Fri, 21 Feb 2003 01:24:15 +0100 (MET) Received: from artboreb@netscape.net by imo-d05.mx.aol.com (mail_out_v34.21.) id s.13a.61a456b (22683); Thu, 20 Feb 2003 19:23:39 -0500 (EST) Received: from netscape.net (mow-m13.webmail.aol.com [64.12.180.129]) by air-in04.mx.aol.com (v90_r2.5) with ESMTP id MAILININ44-0220192339; Thu, 20 Feb 2003 19:23:39 -0500 Date: Thu, 20 Feb 2003 19:23:39 -0500 From: artboreb@netscape.net (Arturo Borquez) To: oliver@first.in-berlin.de (Oliver Bandel) Cc: caml-list@inria.fr Subject: RE: [Caml-list] Error: Type variables, that can not be generalized?! MIME-Version: 1.0 Message-ID: <5821CE85.7BCA49C2.00958B05@netscape.net> X-Mailer: Atlas Mailer 2.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk oliver@first.in-berlin.de (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. Regards Arturo >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 > -- Arturo Borquez __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ ------------------- 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