Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94824 invoked by uid 1010); 25 Jan 2006 06:55:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94809 invoked from network); 25 Jan 2006 06:55:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2006 06:55:23 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:57322] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CD/7B-06819-AD027D34 for ; Wed, 25 Jan 2006 01:55:23 -0500 Received: (qmail 29605 invoked from network); 25 Jan 2006 06:55:17 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 25 Jan 2006 06:55:17 -0000 Message-ID: <7.0.0.16.2.20060124225424.0491f4c8@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16 Date: Tue, 24 Jan 2006 22:55:18 -0800 To: Lukas Smith Cc: Marcus Boerger ,internals@lists.php.net In-Reply-To: <43D48EEB.1090808@php.net> 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"; format=flowed Subject: Re: [PHP-DEV] Static vs. non static From: andi@zend.com (Andi Gutmans) As you're using this in the context of the object, I don't think it's too confusing. I actually find the latter more confusing and think it's best to stick to what we have today. Andi At 12:08 AM 1/23/2006, Lukas Smith wrote: >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