Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94458 invoked from network); 10 Oct 2012 09:25:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2012 09:25:29 -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.42 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:53172] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/B0-23031-70F35705 for ; Wed, 10 Oct 2012 05:25:28 -0400 Received: by mail-qa0-f42.google.com with SMTP id t11so4617072qaa.8 for ; Wed, 10 Oct 2012 02:25:25 -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:content-transfer-encoding; bh=KNVePaqSHhmBr5o8k7WuHBF4rQDzgACAZUJlh1MNNlA=; b=Zmcf/n9TWS5zIGry/5GWktGuiqeAwgs/kaKKHHLTODv+N5D9ZHCfC69i8uJpoYrWGr whYSfIRUtmRVINqor9wijbOME+XRw1aENO/u5dgFMINMybikln4TCNGzf4pjZlqIbYdd sZ8YKRDAGVrdvfY5o5aawNyXHYI/UBIRSWJIam+00me0MHnWegxdW4c3t4vRWseGJ9Jo DJQV/bV9D7G7JlIjspxaiaL3JwDfmIYf+BSaJP2Z5uUwbVWZWaYwSGReBptlDUIwWOWx VMTQEe4CoLildC6htGgzkCjyMMT2pNivbQmWIC9qFEXjxPj04jvEFbB7CKhH6kmSJB31 FxRg== MIME-Version: 1.0 Received: by 10.49.129.201 with SMTP id ny9mr456964qeb.37.1349861125111; Wed, 10 Oct 2012 02:25:25 -0700 (PDT) Received: by 10.49.107.163 with HTTP; Wed, 10 Oct 2012 02:25:24 -0700 (PDT) In-Reply-To: <5074EB6F.4030809@gmail.com> References: <9570D903A3BECE4092E924C2985CE485612B3B48@MBX202.domain.local> <5073328D.5000002@gmail.com> <50735165.8010703@aaronholmes.net> <9570D903A3BECE4092E924C2985CE485612B4353@MBX202.domain.local> <760ab4f994a78a846cf86aafda71e0e2@mohiva.com> <5074EB6F.4030809@gmail.com> Date: Wed, 10 Oct 2012 10:25:24 +0100 Message-ID: To: David Muir Cc: johannes@schlueters.de, internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Propety Accessors v1.1 From: leight@gmail.com (Leigh) On 10 October 2012 01:16, Johannes Schl=FCter wrot= e: > Up until now reflection is leaky and is telling the truth. We should > either keep that or completely clean up reflection. Reflection should always tell the truth, or there is no point in it. On 10 October 2012 04:28, David Muir wrote: > That said, it wouldn't help for scalar values, and that leads to a proble= m > with the current syntax (AFAICS). You can't specify the initial value for= a > property: This is one of the points I was trying to get across, there is currently no way to set the default value*. If your setter performs some sort of calculation on the value, then you're going to have to reverse that process in order to set the initial value constructor. *Unless you use the following highly confusing approach. class MyClass { protected $__property =3D 'default'; public $property { get; } }