Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82126 invoked by uid 1010); 19 Feb 2004 09:03:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82092 invoked from network); 19 Feb 2004 09:03:59 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.187) by pb1.pair.com with SMTP; 19 Feb 2004 09:03:59 -0000 Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Atk65-0002PE-00; Thu, 19 Feb 2004 10:03:53 +0100 Received: from [217.160.91.103] (helo=php.net) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1Atk65-0001WK-00; Thu, 19 Feb 2004 10:03:53 +0100 Message-ID: <40347BE5.2090405@php.net> Date: Thu, 19 Feb 2004 10:03:33 +0100 Reply-To: hartmut@php-groupies.de User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040111 X-Accept-Language: en, de MIME-Version: 1.0 To: Greg Beaver CC: John Coggeshall , PHP Internals References: <1077090830.30573.1.camel@coogle.localdomain> <40340579.7050309@chiaraquartet.net> In-Reply-To: <40340579.7050309@chiaraquartet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:4d0d1aa686edf46be04a942500a6c0af Subject: Re: [PHP-DEV] Re: Static weirdness.. From: hartmut@php.net (Hartmut Holzgraefe) Greg Beaver wrote: > Hi, > > I agree that allowing $a->bar() with a static method is too confusing, > and should not be allowed. However, the ability to call a static method > of an object (variable class name, in other words), is invaluable. What > if PHP simply allowed $object::staticMethod() syntax? Why do i (as a user of a class) have to know whether a member function is static or not? Having two different calling conventions is what appears to be confusing to me ... -- Hartmut Holzgraefe