Le 30 oct. 08 à 19:48, CUOQ Pascal a écrit :
First, although it doesn't seem to be specified in the documentation,
I assume that weak pointers will *not* be reclaimed (e.g. from a weak
hash table) if the program retains some other reference to the
object.
Exactly.
The documentation should be fixed, as it really doesn't make that
point clear. It says "A weak pointer is a value that the garbage
collector may erase at any time" and this isn't what you want if you
are looking for weak references.
Best,
Daniel
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs