Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88529 invoked by uid 1010); 19 Feb 2004 09:06:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88505 invoked from network); 19 Feb 2004 09:05:59 -0000 Received: from unknown (HELO basiczlager.backendmedia.com) (195.75.116.242) by pb1.pair.com with SMTP; 19 Feb 2004 09:05:59 -0000 Received: from localhost (localhost [127.0.0.1]) by basiczlager.backendmedia.com (Postfix) with ESMTP id B7BB983160; Thu, 19 Feb 2004 10:05:58 +0100 (CET) Received: from basiczlager.backendmedia.com ([127.0.0.1]) by localhost (basiczlager [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23180-08; Thu, 19 Feb 2004 10:05:53 +0100 (CET) Received: by basiczlager.backendmedia.com (Postfix, from userid 1005) id 89FCA83335; Thu, 19 Feb 2004 10:05:53 +0100 (CET) Received: from backendmedia.com (port-212-202-169-220.reverse.qdsl-home.de [212.202.169.220]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by basiczlager.backendmedia.com (Postfix) with ESMTP id 9B68F83160; Thu, 19 Feb 2004 10:05:52 +0100 (CET) Message-ID: <40347BF5.4060409@backendmedia.com> Date: Thu, 19 Feb 2004 10:03:49 +0100 Organization: BackendMedia GbR User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hartmut@php-groupies.de Cc: Greg Beaver , John Coggeshall , PHP Internals References: <1077090830.30573.1.camel@coogle.localdomain> <40340579.7050309@chiaraquartet.net> <40347BE5.2090405@php.net> In-Reply-To: <40347BE5.2090405@php.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at backendmedia.com Subject: Re: [PHP-DEV] Re: Static weirdness.. From: smith@backendmedia.com (Lukas Smith) Hartmut Holzgraefe wrote: > 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 ... I agree with Hartmut. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07