Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65717 invoked by uid 1010); 10 May 2005 08:32:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33768 invoked from network); 10 May 2005 08:21:43 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 10 May 2005 08:21:43 -0000 X-Host-Fingerprint: 81.169.182.136 h59705.serverkompetenz.net Linux 2.4/2.6 Received: from ([81.169.182.136:33747] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id EB/EB-35155-51F60824 for ; Tue, 10 May 2005 04:21:41 -0400 Received: from baumbart.mbo (dsl-082-083-245-037.arcor-ip.net [82.83.245.37]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 059E235C276; Tue, 10 May 2005 10:13:27 +0200 (CEST) Date: Tue, 10 May 2005 10:03:56 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <293586152.20050510100356@marcus-boerger.de> To: Markus Fischer Cc: internals@lists.php.net In-Reply-To: <42805529.8030500@fischer.name> References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> <42805529.8030500@fischer.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: new overloading feature? From: mail@marcus-boerger.de (Marcus Boerger) Hello Markus, Tuesday, May 10, 2005, 8:31:05 AM, you 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. > 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? We're not going to change the language for that, sorry. -- Best regards, Marcus mailto:mail@marcus-boerger.de