From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.7 required=5.0 tests=AWL,DNS_FROM_RFC_POST, DNS_FROM_SECURITYSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6F2CFBB84 for ; Fri, 31 Oct 2008 16:27:47 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcEACHBCknAXQImgWdsb2JhbACTUD4BARYiryaKQgEDAQODToIE X-IronPort-AV: E=Sophos;i="4.33,523,1220220000"; d="scan'208";a="16721152" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 31 Oct 2008 16:27:47 +0100 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9VFRkNZ011845 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 31 Oct 2008 16:27:47 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsBAFfBCklA6ba5imdsb2JhbACTUD4BAQEKCQwHDwWvH4pCAQMBA4NOggQ X-IronPort-AV: E=Sophos;i="4.33,523,1220220000"; d="scan'208";a="19428646" Received: from nf-out-0910.google.com ([64.233.182.185]) by mail1-smtp-roc.national.inria.fr with ESMTP; 31 Oct 2008 16:27:46 +0100 Received: by nf-out-0910.google.com with SMTP id d3so672816nfc.7 for ; Fri, 31 Oct 2008 08:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=fiblhtRMy/OPEBsBvwEHDiy+hN4zkrWLXaJfitdWCOk=; b=MbJtHGQKOzLh/ZfGactouexnGx07tvebTKEsETPvmbCdxJn9sHvENICsrufe4af9Mg x4N/FJAauXU5+7pL72WVWatabzSFAcAR4ou64yh92o1BUcfPPWBuIFSg9HFbbIuJ3u86 H3RRFSRZ/BI7sod4phL8ZIxut1oA/ucb6AUxU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=NQ6pJmK8FXhtmQs3OQ/O7RuxN1Iaw8pXctgTrQ0wXL5YYIvrhhBcPTqG4pQJaA1iER XVtLtH7x8SY06XgcKRha3y6fU9hf/DF5+9GtJgaPdF94aLJ3Dagzy/lUCIhjn4XYEA3j 2oAjxMLSIkHf0PkpIvuV5lt74PBrHJYdjw2os= Received: by 10.86.84.5 with SMTP id h5mr7117698fgb.49.1225466866159; Fri, 31 Oct 2008 08:27:46 -0700 (PDT) Received: from ?10.0.1.2? (152-2.2-85.cust.bluewin.ch [85.2.2.152]) by mx.google.com with ESMTPS id l12sm4680119fgb.6.2008.10.31.08.27.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Oct 2008 08:27:45 -0700 (PDT) Message-Id: From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml Mailing List In-Reply-To: <490B1CDC.8080808@ens-lyon.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [Caml-list] understanding weak Date: Fri, 31 Oct 2008 16:27:17 +0100 References: <490A6A19.9050704@ens-lyon.org> <9E14E68C-5480-46B8-9426-11EE40B6B139@erratique.ch> <490B1CDC.8080808@ens-lyon.org> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at discorde with ID 490B23F2.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 gc'ed:01 pointer:01 pointer:01 caml-list:01 jambon:01 arbitrary:02 confusing:02 daniel:04 daniel:04 fst:06 ecrit:06 weak:06 weak:06 Le 31 oct. 08 =E0 15:57, Martin Jambon a =E9crit : > (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 =20 reclaiming what the weak pointer refers to (the x). It's the former =20 the OP was talking about. Best, Daniel