Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16191 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63990 invoked by uid 1010); 10 May 2005 08:32:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32773 invoked from network); 10 May 2005 08:19:20 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 10 May 2005 08:19:20 -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:3740] helo=sunshine.home) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 61/EB-35155-78E60824 for ; Tue, 10 May 2005 04:19:20 -0400 Received: from [213.164.23.137] (helo=[10.15.10.17]) by sunshine.home with esmtpa (Exim 4.50) id 1DVOCO-0004gR-GL; Tue, 10 May 2005 08:26:35 +0200 Message-ID: <42806EE8.2060907@fischer.name> Date: Tue, 10 May 2005 10:20:56 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcus Boerger CC: internals@lists.php.net References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> <42805529.8030500@fischer.name> <293586152.20050510100356@marcus-boerger.de> In-Reply-To: <293586152.20050510100356@marcus-boerger.de> 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: Marcus Boerger wrote: >>> 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. > > We're not going to change the language for that, sorry. [...] 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) Marcus Boerger wrote: >>> 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. > > We're not going to change the language for that, sorry. I didn't request any change ;) Just wanted to know if there's a current better practice. If not, then not. thanks, - Mar'k'us