Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8625 invoked from network); 29 Nov 2010 20:42:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2010 20:42:51 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-ww0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:35766] helo=mail-ww0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/00-07888-A4014FC4 for ; Mon, 29 Nov 2010 15:42:51 -0500 Received: by wwf26 with SMTP id 26so471448wwf.5 for ; Mon, 29 Nov 2010 12:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=m2kvcQr1M5KzXwLsNsbOz3hwWhCPUy6adXCRhc6GBUU=; b=AezDigLwFFtUj6N8pnqxwko0kMlON3i57vJGFb+hMqsMdck19DqKF1aCsofjwLiHrz ipUvTauiS0kEBtAZyhmA1feRBheCD/jeN6lH5L+7IpV+Bz/V81SZd/cDWtapXk8j3sQH PcNVCyQdXM6PgvUcVnucnaaXJ26otEbA6Ehk0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=n8cAUC6KUwY0DiKHx649L3iIgzlEfGawGMqgKk9R0n7H5cKXBT0Oqnzgdt33MGzDgC Jbbwvpp5ddAmr1wsiPdkvVnwcHN79eWKGLhE3zY6IfBNZpqJ+cy+0UWqI/beAoq+CfRg p9C6bkSsTx3yF3GrEP1d1tidvCHpqXS1lreaQ= Received: by 10.227.72.196 with SMTP id n4mr6541126wbj.153.1291063366364; Mon, 29 Nov 2010 12:42:46 -0800 (PST) Received: from [192.168.1.26] (166.Red-83-32-9.dynamicIP.rima-tde.net [83.32.9.166]) by mx.google.com with ESMTPS id x6sm2614712weq.13.2010.11.29.12.42.44 (version=SSLv3 cipher=RC4-MD5); Mon, 29 Nov 2010 12:42:45 -0800 (PST) Message-ID: <4CF41064.9070106@gmail.com> Date: Mon, 29 Nov 2010 21:43:16 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: RQuadling@googlemail.com CC: internals@lists.php.net References: <4CF3B903.6000204@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP From: keisial@gmail.com ("=?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?=") 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.