Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16196 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97508 invoked by uid 1010); 10 May 2005 13:54:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71389 invoked from network); 10 May 2005 13:40:56 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 10 May 2005 13:40:56 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.4/2.6 Received: from ([212.112.227.169:35488] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 5C/FC-35155-7E9B0824 for ; Tue, 10 May 2005 09:40:55 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 5051ADF0188; Tue, 10 May 2005 15:41:21 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29301-03; Tue, 10 May 2005 15:41:17 +0200 (CEST) Received: from [192.168.0.101] (user-0cal1oq.cable.mindspring.com [24.170.135.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ipx11223.ipxserver.de (Postfix) with ESMTP id 9FD70DF0121; Tue, 10 May 2005 15:41:16 +0200 (CEST) Message-ID: <4280B9E3.6010604@php.net> Date: Tue, 10 May 2005 09:40:51 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lukas Smith Cc: Sebastian Bergmann , internals@lists.php.net References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> <4280AFD4.9080306@php.net> In-Reply-To: <4280AFD4.9080306@php.net> 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] Re: new overloading feature? From: lsmith@php.net (Lukas Smith) Lukas Smith wrote: > Sebastian Bergmann wrote: > >> Lukas Smith wrote: >> >>> http://bugs.php.net/bug.php?id=30235 >> >> >> >> I agree with Marcus: self is bound at runtime, so the behaviour is >> correct. If you do not like this late binding just do not use self but >> the name of the class. > > > So please explain to me how you would write a singleton static method > for a base class from which you can inherite. Suddenly the idea with > using the class name becomes less useful. > > The late binding seems to be a nice performance tweak, but it means that > in many situations you end up having to do cut and paste in combination > with inheritance. Doesnt seem very OOP to me, altough I fear Java > behaves the same way. So all I am asking for is an easy way to call a > static method in the current context (without having to go through the > reflection API, having to store the class name in a static property etc). Johannes reminded me that I should probably also mention this weekly news item on the topic: http://www.zend.com/zend/week/week219.php#Heading5 regards, Lukas