Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16195 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24343 invoked by uid 1010); 10 May 2005 13:02:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96218 invoked from network); 10 May 2005 12:58:01 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 10 May 2005 12:58:01 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.4/2.6 Received: from ([212.112.227.169:35135] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 2F/4A-35155-9DFA0824 for ; Tue, 10 May 2005 08:58:01 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id EC400DF018F; Tue, 10 May 2005 14:58:25 +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 25885-06; Tue, 10 May 2005 14:58:23 +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 6D6D4DF0121; Tue, 10 May 2005 14:58:22 +0200 (CEST) Message-ID: <4280AFD4.9080306@php.net> Date: Tue, 10 May 2005 08:57:56 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sebastian Bergmann Cc: internals@lists.php.net References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> In-Reply-To: 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) 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). regards, Lukas