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 TAA00847; Fri, 22 Mar 2002 19:34:59 +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 TAA12786 for ; Fri, 22 Mar 2002 19:34:58 +0100 (MET) Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g2MIYw521009 for ; Fri, 22 Mar 2002 19:34:58 +0100 (MET) Received: from mel-rta7.wanadoo.fr (193.252.19.61) by mel-rto1.wanadoo.fr; 22 Mar 2002 19:34:58 +0100 Received: from debian (80.8.76.119) by mel-rta7.wanadoo.fr; 22 Mar 2002 19:34:45 +0100 Received: from moi by debian with local (Exim 3.35 #1 (Debian)) id 16oTsV-00012g-00 for ; Fri, 22 Mar 2002 19:35:03 +0100 To: caml-list@inria.fr Subject: [Caml-list] Weak Hash table From: Remi VANICAT Date: 22 Mar 2002 19:35:03 +0100 Message-ID: <874rj830yw.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I've just done a weak hash table that is a map (differently to the weak hash table one can found in the ocaml cvs, which is a set). it can be found there : http://aspellfr.free.fr/ There is some documentation and the semantic is as follow : find will return you something for a key that has been previously add only if both the key and the data are still alive. If either the key or the data have been freed, then find won't find it. The main problem is that multi add of binding from the same key will hide the new binding or the old one, depending of garbage collection... -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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