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 RAA14522; Thu, 26 Sep 2002 17:56:04 +0200 (MET DST) 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 RAA14512 for ; Thu, 26 Sep 2002 17:56:04 +0200 (MET DST) Received: from smtp.noos.fr (lafontaine.noos.net [212.198.2.72]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8QFtw527238 for ; Thu, 26 Sep 2002 17:55:58 +0200 (MET DST) Received: (qmail 17614481 invoked by uid 0); 26 Sep 2002 15:55:57 -0000 Received: from unknown (HELO noos.fr) ([81.65.61.57]) (envelope-sender ) by 212.198.2.72 (qmail-ldap-1.03) with SMTP for ; 26 Sep 2002 15:55:57 -0000 Message-ID: <3D932E0D.8CA74005@noos.fr> Date: Thu, 26 Sep 2002 17:55:57 +0200 From: nadji@noos.fr X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.19-gentoo-r9 i686) X-Accept-Language: en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: Re: [Caml-list] a design problem requiring downcasting? (long) References: <200209260901.g8Q910t03459@orchestra.cs.caltech.edu> <3D932579.1839FFF2@noos.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Remi VANICAT wrote: > It is what my hweak library is doing. the only difference is that I > use my own Hashtbl with weak pointer (so object that are in my memo > object can be collected by the GC). > Yes it's better. Is there any reason why this is not in the standard library ? It seems that there is only one functorial interface to weak hash tables, and they are intended to be used like a set, while yours is intended to be used when we want to be "weak" for the key _and_ for the data. I think it would be useful to have both. My 2 cents, nadji ------------------- 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