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 JAA30947; Mon, 4 Nov 2002 09:25:42 +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 JAA30865 for ; Mon, 4 Nov 2002 09:25:41 +0100 (MET) Received: from web11103.mail.yahoo.com (web11103.mail.yahoo.com [216.136.131.150]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id gA48Pe509221 for ; Mon, 4 Nov 2002 09:25:40 +0100 (MET) Message-ID: <20021104082539.18529.qmail@web11103.mail.yahoo.com> Received: from [159.226.149.121] by web11103.mail.yahoo.com via HTTP; Mon, 04 Nov 2002 00:25:39 PST Date: Mon, 4 Nov 2002 00:25:39 -0800 (PST) From: pan deng Subject: [Caml-list] how to open types To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I want to use hashtable on my objects which all has a method get_string:string. but i can only write the code like these: module SeqHashType = struct type t= let equal s1 s2 = (String.uppercase s1#get_string =String.uppercase s2#get_string ) let hash s = Strex.hash s#get_string end module SeqHashtbl = Hashtbl.Make (SeqHashType) surely it is not what i want . i have tried type t= but i can not complie it , the complier says Unbound .. then how to open the type in the module SeqHashType ? or it can not be opened at this situation ? i am a newbie and a little puzzled at open types. __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.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