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.8 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 5B2EBBB84 for ; Thu, 30 Oct 2008 20:14:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAAAFekCUlC+VytkGdsb2JhbACTTT4BAQEBCQkMBxEDrWGKXAEDAQODToIE X-IronPort-AV: E=Sophos;i="4.33,517,1220220000"; d="scan'208";a="16687400" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 30 Oct 2008 20:14:30 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9UJETZu011383 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 30 Oct 2008 20:14:30 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAAAFekCUlC+VytkGdsb2JhbACTTT4BAQEBCQkMBxEDrWGKXAEDAQODToIE X-IronPort-AV: E=Sophos;i="4.33,517,1220220000"; d="scan'208";a="16687399" Received: from ug-out-1314.google.com ([66.249.92.173]) by mail2-smtp-roc.national.inria.fr with ESMTP; 30 Oct 2008 20:14:29 +0100 Received: by ug-out-1314.google.com with SMTP id u40so992150ugc.28 for ; Thu, 30 Oct 2008 12:14:29 -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=YPWRR5a/zAo0jahn4aTG4O0cvS0QEpzb9IWcHhDYpYM=; b=PS5lskf/2ftd+VPfg2g3dSJtr6yu6AV8eZzljCGfGQzTGtxPYGTJJzGDF8bJS5wFSv MNuKq6Pys8RXgXcWBZ6VsWzAYIEDOVak1lKFjidoCUxsp3sPvyLX78eX9DC5WodzznbM qut8NT+rLBtN8ZbYEzoU8DrulU6PHmnBG2bq4= 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=DRvzc/Nzg03lbl/wdE8fC1Dfr1Xz7pDL7WM1tovkk9FnSeCnv/KUV3YS7JZQxkAKRC TVmYQ2mJud/T4nNC5KYH8dBW1QycSY1XZjOvkoxgWrX5hIJyeKzEaUXgqG/X8kh2JOsz dEuph+4j7XywcYm/tf8ZQilphAhlA73czH7pQ= Received: by 10.86.95.8 with SMTP id s8mr7520428fgb.79.1225394069269; Thu, 30 Oct 2008 12:14:29 -0700 (PDT) Received: from ?10.0.1.2? (33-98.0-85.cust.bluewin.ch [85.0.98.33]) by mx.google.com with ESMTPS id 4sm3314891fgg.4.2008.10.30.12.14.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 12:14:28 -0700 (PDT) Message-Id: From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml Mailing List In-Reply-To: <5EFD4D7AC6265F4D9D3A849CEA9219191AB114@LAXA.intra.cea.fr> 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] RE: understanding weak Date: Thu, 30 Oct 2008 20:12:17 +0100 References: <20081030182019.EEBC5BBB7@yquem.inria.fr> <5EFD4D7AC6265F4D9D3A849CEA9219191AB114@LAXA.intra.cea.fr> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at concorde with ID 490A0795.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 cuoq:01 pointers:01 hash:01 pointer:01 48,:98 garbage:01 caml-list:01 daniel:04 daniel:04 ecrit:06 weak:06 weak:06 table:93 Le 30 oct. 08 =E0 19:48, CUOQ Pascal a =E9crit : >> 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 =20 >> object. > > Exactly. The documentation should be fixed, as it really doesn't make that =20 point clear. It says "A weak pointer is a value that the garbage =20 collector may erase at any time" and this isn't what you want if you =20 are looking for weak references. Best, Daniel=