Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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,

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: