Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21660 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26906 invoked by uid 1010); 23 Jan 2006 19:29:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26890 invoked from network); 23 Jan 2006 19:29:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2006 19:29:46 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:38606] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 69/6D-06819-9AE25D34 for ; Mon, 23 Jan 2006 14:29:45 -0500 Received: from [192.168.1.3] (dslb-084-063-004-115.pools.arcor-ip.net [84.63.4.115]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id A9BC135C1DD; Mon, 23 Jan 2006 20:29:41 +0100 (CET) Date: Mon, 23 Jan 2006 20:27:55 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <101671748.20060123202755@marcus-boerger.de> To: Andi Gutmans , Sebastian Bergmann Cc: internals@lists.php.net In-Reply-To: References: <1179437188.20060122193218@marcus-boerger.de> <7.0.0.16.2.20060122185859.02b91f38@zend.com> <43D48EEB.1090808@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Static vs. non static From: helly@php.net (Marcus Boerger) Hello Andi, Sebastian, Monday, January 23, 2006, 9:25:29 AM, Sebastian wrote: > Lukas Smith schrieb: >> If I get Marcus proposal properly he would then allow changing things >> from: >> parent::method(); >> >> to >> >> parent->method(); > If that is the case, then it would be consistent to allow > this->method() > this->attribute > parent->attribute parent->method() would work attributes are more than discussable and i don'T think we need anything more than $this->attibute for dynamic attibutes. And since you cannot overload protected or public attibutes or hide base class attibutes there is no need to provide a means of skipping hierarchy levels. If i was very pedantic i'd not propose 'baseclass->method()' but the formal correct '$this->baseclass::method()'. However i see the former as a very handy and clear shortcut. Another reason to go with the shortcut is that once we'd allow '$this->baseclass::method()' people would start to ask for '$obj->classname::method()' which is at somepoints usefull but is not exactly the KISS approach. Best regards, Marcus