Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56422 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97789 invoked from network); 19 Nov 2011 07:15:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2011 07:15:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 74.115.204.80 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 74.115.204.80 relay-hub206.domainlocalhost.com Received: from [74.115.204.80] ([74.115.204.80:41501] helo=relay-hub206.domainlocalhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/00-31316-B7757CE4 for ; Sat, 19 Nov 2011 02:15:08 -0500 Received: from MBX201.domain.local ([169.254.1.105]) by HUB206.domain.local ([74.115.204.80]) with mapi id 14.01.0289.001; Sat, 19 Nov 2011 02:15:05 -0500 To: "internals@lists.php.net" Thread-Topic: Getters/Setters and parent getter/setter access Thread-Index: Acymd0S+OeyM3R5HTpqpbR0x9RwHyA== Date: Sat, 19 Nov 2011 07:15:04 +0000 Message-ID: <9570D903A3BECE4092E924C2985CE485399328B6@MBX201.domain.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.64.24] Content-Type: multipart/alternative; boundary="_000_9570D903A3BECE4092E924C2985CE485399328B6MBX201domainloc_" MIME-Version: 1.0 Subject: Getters/Setters and parent getter/setter access From: cpriest@zerocue.com (Clint M Priest) --_000_9570D903A3BECE4092E924C2985CE485399328B6MBX201domainloc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The RFC here: https://wiki.php.net/rfc/propertygetsetsyntax Talks about allowing a sub-class to access a parent getter via TimePeriod::= $Milliseconds or possibly parent::$Milliseconds. Either of those methods (currently) tries to access a static property in th= e parent or defined class. It would probably break existing code if we tri= ed to make the parent:: or TimePeriod:: syntax to access the parent accesso= r. Anyone have any suggestions on an alternative syntax? I'm sure I could change it so that parent:: or TimePeriod:: from within a g= etter/setter would cause it to access the parent getter/setter but that wou= ld create an inconsistency within the language. Ideas? -Clint --_000_9570D903A3BECE4092E924C2985CE485399328B6MBX201domainloc_--