From: Martin Jambon <martin.jambon@ens-lyon.org>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] understanding weak
Date: Fri, 31 Oct 2008 17:52:41 +0100 [thread overview]
Message-ID: <490B37D9.1030402@ens-lyon.org> (raw)
In-Reply-To: <C2CCCBB3-ECB0-425C-8029-06F1E3609051@erratique.ch>
Daniel Bünzli wrote:
>
> 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.
I don't see what makes you define (Some x) as a weak pointer.
Martin
--
http://mjambon.com/
next prev parent reply other threads:[~2008-10-31 17:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 18:19 Warren Harris
2008-10-31 2:14 ` [Caml-list] " Martin Jambon
2008-10-31 8:37 ` Daniel Bünzli
2008-10-31 14:57 ` Martin Jambon
2008-10-31 15:27 ` Daniel Bünzli
2008-10-31 16:52 ` Martin Jambon [this message]
2008-10-31 19:12 ` Aleksey Nogin
2008-10-31 20:10 ` Martin Jambon
2008-10-31 20:44 ` Martin Jambon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=490B37D9.1030402@ens-lyon.org \
--to=martin.jambon@ens-lyon.org \
--cc=caml-list@inria.fr \
--cc=daniel.buenzli@erratique.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox