Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55927 invoked from network); 30 Nov 2010 14:07:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2010 14:07:47 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:43755] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/B3-35426-23505FC4 for ; Tue, 30 Nov 2010 09:07:46 -0500 Received: by qyk27 with SMTP id 27so5877069qyk.8 for ; Tue, 30 Nov 2010 06:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=syeTeU5ZoZgyaHyBi6L9FH95KtcM57T8OipM+0VJvYM=; b=GEwbnlQvuX4yq4g9K/1OAcO1vI9NpyOIQYai35adB5JZUzHL5PqwMOAMUukm01fHk4 aUIaTxCXNJ1E/9ei2I3SSlpCp3MrBbyFX42gz9hc8+FttsZvv8XEU+EfXmvmLwJcMVb+ iwyivCkiIvrO1ivnolvRTr14G3VR028m8LCwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=M/KgAlbyq+GC+m2i3h0rkVBOoNTm+xcN8iO5FdCaWeCKSADNEMU8tmGroyBI2L8+ua nkjEeCcJ4PXNs8gYxp96lEwbAGAWlYydE8GYFOVprGq7JY6FIXR3JtaW3FoQ7aKrgtpF kD8l+Zb8a8j3bEkVDw2HPA+FKe2Rn7AUz3kIg= Received: by 10.229.84.81 with SMTP id i17mr6108655qcl.215.1291126063944; Tue, 30 Nov 2010 06:07:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.100.130 with HTTP; Tue, 30 Nov 2010 06:07:23 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: <4CF41064.9070106@gmail.com> References: <4CF3B903.6000204@gmail.com> <4CF41064.9070106@gmail.com> Date: Tue, 30 Nov 2010 14:07:23 +0000 Message-ID: To: =?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?= Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP From: rquadling@gmail.com (Richard Quadling) 2010/11/29 =C3=81ngel Gonz=C3=A1lez : > Richard Quadling wrote: >> As for reading $seconds directly ... >> >> Well. >> >> If you think of the element that follows read as $this->xxxx, then if >> the parser can handle both ... >> >> read $seconds >> read getSeconds >> >> then yes for both. >> >> If not, then I'd guess that the getSeconds version should be the one >> we use as the value may not actually exist without some processing. >> >> Richard. > > If it begins with $, it's a variable name, so map to that class member > variable. If it is instead a plain T_STRING, take that as a member call. > > I'm not sure to be understanding the issue you're mentioning. > > If the proposal incorporated support for getting the value from a local-scoped variable (I assume the variable has to be part of the current class or one of its parents?) as well as calling the getter, then that really does seem to allow everyone everything they need. --=20 Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY