Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63307 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14144 invoked from network); 9 Oct 2012 17:19:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2012 17:19:50 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:52269] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/3F-23861-5BC54705 for ; Tue, 09 Oct 2012 13:19:50 -0400 Received: by mail-qc0-f170.google.com with SMTP id d42so4562211qca.29 for ; Tue, 09 Oct 2012 10:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PLHw125C37Nf6CQweXPPXV1nkorudIetqVoE610NN3M=; b=tiDvrx7TXliH7rO52c2X9lTvA3GROb8tJcvTlarRaxLypfNcykmho6bZKgczp3H623 Oj28y1fy8fGh+n32a8aOtJ/4+1pFQuEyojmunx2VUzYLgljqI//qIB++y3LljXahSry/ mg0Z5eb0FV/lqBeF++gdscuPPbo7r5V57Sx0Ghm1mGZt4KAUr8q7Jr8QWNM7xnd4ObS1 b5YsNUjuLMiouCOacX/nJOVnwi7Y7vPzPiZabBGZ/eQfoqlMSAccK51Qfxpi9nEyTsYL kesEWgUXxQKiQPq8Ppj+K0Jt1lypSHfS84cCZXCLoPc65avvsO/8i1dS3N67F/uIc8+I axMA== MIME-Version: 1.0 Received: by 10.49.129.201 with SMTP id ny9mr49971326qeb.37.1349803186990; Tue, 09 Oct 2012 10:19:46 -0700 (PDT) Received: by 10.49.107.163 with HTTP; Tue, 9 Oct 2012 10:19:46 -0700 (PDT) Received: by 10.49.107.163 with HTTP; Tue, 9 Oct 2012 10:19:46 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE485612B3B48@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485612B3B48@MBX202.domain.local> Date: Tue, 9 Oct 2012 18:19:46 +0100 Message-ID: To: Clint Priest Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b6788247a2d4704cba38b60 Subject: Re: [PHP-DEV] [RFC] Propety Accessors v1.1 From: leight@gmail.com (Leigh) --047d7b6788247a2d4704cba38b60 Content-Type: text/plain; charset=ISO-8859-1 > RFC Document: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented public $property { set { $this->property = ($this->property*2)+$value } get; } How do I reference the property being set from within the function? The way I have done it in the example will cause recursion? How can I assign to "self"? How do I set the default value of $property when the object is created? Surely I don't have to reverse the set accessors logic and set the inverse in __construct? --047d7b6788247a2d4704cba38b60--