English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
understanding weak
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-31 (15:27)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] understanding weak

Le 31 oct. 08 ŕ 15:57, Martin Jambon a écrit :

> (fst x) would certainly cause funny effects if x were GC'ed at an
> arbitrary time after it has been added to the weak array.

You are confusing reclaiming the weak pointer (the Some x) and  
reclaiming what the weak pointer refers to (the x). It's the former  
the OP was talking about.

Best,

Daniel