Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54022 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27100 invoked from network); 18 Jul 2011 08:15:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2011 08:15:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:60347] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/72-08769-4ABE32E4 for ; Mon, 18 Jul 2011 04:15:32 -0400 Received: by yxk8 with SMTP id 8so1288457yxk.29 for ; Mon, 18 Jul 2011 01:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=uttyO+/DzeAZHOtzgGm8B7WUAI8h7U15uW5Y0IoFmoo=; b=VP3nGgJTNQa3qATPYsIP4Ra5nA+xfMk93hvVJI88w9hD4qGfR/PF/j83IhNXj78INp Mrs4yxZwwiYNqLG75ZpP8D8g/rXvCIDqL19SqUc8UPOXRqqIW3Ijg3Myu8YANd9cNd/e IOkuGjfdnel0uTwCjjQ6CaiOMIHnUtdQwG/cs= MIME-Version: 1.0 Received: by 10.151.8.12 with SMTP id l12mr5467629ybi.423.1310976928339; Mon, 18 Jul 2011 01:15:28 -0700 (PDT) Received: by 10.147.38.17 with HTTP; Mon, 18 Jul 2011 01:15:28 -0700 (PDT) In-Reply-To: <4E23EA00.7090308@toolpark.com> References: <4E22DDD0.20105@toolpark.com> <4E23D124.50104@toolpark.com> <4E23EA00.7090308@toolpark.com> Date: Mon, 18 Jul 2011 10:15:28 +0200 Message-ID: To: Lars Schultz Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] weak references From: tyra3l@gmail.com (Ferenc Kovacs) >> I hope this will be more clear once the RFC is complete. I will then sta= rt >> a >> separate thread for official discussion. > > All I wanted was to point out that introducing such a thing might overly > complicate things for users not familiar with the concept...as the java g= uy > pointed out in his intro, even java-people don't know about the feature, > even though it's been around for 10 years > (http://weblogs.java.net/blog/2006/05/04/understanding-weak-references). > I think that having to know and care about refcounts and zvals are more complicated than having an Spl class, which can hold a reference for a variable what can be destroyed to free memory. and there is a chance that people are familiar with the Weak references from other languages, while the zval approach only familiar for those that knows about php internals. so I think that from the userland POV, weak references are easier to grasp. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu