Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] a design problem requiring downcasting? (long)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: nadji@n...
Subject: Re: [Caml-list] a design problem requiring downcasting? (long)
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