Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88626 invoked by uid 1010); 10 May 2005 06:46:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73712 invoked from network); 10 May 2005 06:29:37 -0000 Received: from unknown (HELO yahoo.com) (127.0.0.1) by localhost with SMTP; 10 May 2005 06:29:37 -0000 X-Host-Fingerprint: 80.108.136.197 chello080108136197.10.12.vie.surfer.at Linux 2.4/2.6 Received: from ([80.108.136.197:3655] helo=sunshine.home) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 8F/14-35155-1D450824 for ; Tue, 10 May 2005 02:29:37 -0400 Received: from [213.164.23.137] (helo=[10.15.10.17]) by sunshine.home with esmtpa (Exim 4.50) id 1DVMU7-0004Bb-R9 for internals@lists.php.net; Tue, 10 May 2005 06:36:52 +0200 Message-ID: <42805529.8030500@fischer.name> Date: Tue, 10 May 2005 08:31:05 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: 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-Spam-Score: 0 X-Spam-Level: / X-Spam-Report: Spam detection software, running on the system "sunshine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: Re: [PHP-DEV] Re: new overloading feature? From: markus@fischer.name (Markus Fischer) 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. Sorry to jump in the middle, but I've similiar question to constants defined in classes. When the class is named SomeLongNameBecauseWedontHaveNamespaces and I define a SELF_EXPLAINING_CONSTANT_NUMBER_ONE I've to write SomeLongNameBecauseWedontHaveNamespaces::SELF_EXPLAINING_CONSTANT_NUMBER_ONE to access it from within the class itself. Is there a way to reference constants from the same class (or dervived class) in a friendlier way? thanks for listening, - Markus