Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21643 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35526 invoked by uid 1010); 23 Jan 2006 08:08:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35510 invoked from network); 23 Jan 2006 08:08:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2006 08:08:29 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.5 (sometimes 2.4) (4) Received: from ([212.112.227.169:53887] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 08/41-06819-DFE84D34 for ; Mon, 23 Jan 2006 03:08:29 -0500 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id CEBE9DF005D; Mon, 23 Jan 2006 09:08:26 +0100 (CET) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26649-05; Mon, 23 Jan 2006 09:08:08 +0100 (CET) Received: from [127.0.0.1] (i577B5728.versanet.de [87.123.87.40]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 50E8FDF0043; Mon, 23 Jan 2006 09:08:08 +0100 (CET) Message-ID: <43D48EEB.1090808@php.net> Date: Mon, 23 Jan 2006 09:08:11 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Andi Gutmans Cc: Marcus Boerger , internals@lists.php.net References: <1179437188.20060122193218@marcus-boerger.de> <7.0.0.16.2.20060122185859.02b91f38@zend.com> In-Reply-To: <7.0.0.16.2.20060122185859.02b91f38@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] Static vs. non static From: lsmith@php.net (Lukas Smith) Andi Gutmans wrote: > Yes, this was by design. Via class it should be ::method() and via > object it should be ->method(). > Why do you think this is wrong? I think it actually makes a lot of sense > and don't see what we gain from allowing to call self->method(). If > there's a good reason, I'd be open to it though. I just gave a course in PHP5 OOP and this syntax overlap with static calls that do not end up being static seems confusing. If I get Marcus proposal properly he would then allow changing things from: parent::method(); to parent->method(); This would add a totally separate syntax, which would make it clear to users that this is in fact not a static call. It looks ugly, but I understand what he is aiming at. regards, Lukas