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 OAA09712; Wed, 6 Mar 2002 14:40:57 +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 OAA09786 for ; Wed, 6 Mar 2002 14:40:57 +0100 (MET) Received: from mel-rto4.wanadoo.fr (smtp-out-4.wanadoo.fr [193.252.19.23]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g26DeuL22271 for ; Wed, 6 Mar 2002 14:40:56 +0100 (MET) Received: from mel-rta3.wanadoo.fr (193.252.19.153) by mel-rto4.wanadoo.fr; 6 Mar 2002 14:40:52 +0100 Received: from debian (80.8.74.221) by mel-rta3.wanadoo.fr; 6 Mar 2002 14:40:34 +0100 Received: from moi by debian with local (Exim 3.34 #1 (Debian)) id 16ibf0-0001Ae-00 for ; Wed, 06 Mar 2002 14:40:50 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Weak hash table References: <200203061250.NAA0000006787@beaune.inria.fr> From: Remi VANICAT Date: 06 Mar 2002 14:40:50 +0100 In-Reply-To: <200203061250.NAA0000006787@beaune.inria.fr> Message-ID: <87r8mx3jbx.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 Damien Doligez writes: > >From: Christophe Raffalli > >did anyone implemented weak hash table using weak pointers in OCaml ? > > My implementation is in the stdlib Weak of the CVS version of OCaml. > It will be part of the next release, so I'm interested in bug reports > and feature requests. I've look at it, and it seem it's an implementation of a set, not of a map. So if one want a map, he have to use a weak hashtable of couple. But if he want the couple to be alive when ever say its first element is alive, one have to make the couple accessible from the first element. So to say the least, it's difficult to use it like this. By the way, I'm not sure to think of a good solution for this. -- 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