Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13127 invoked by uid 1010); 10 May 2005 11:46:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99240 invoked from network); 10 May 2005 11:27:56 -0000 Received: from unknown (HELO hotmail.com) (127.0.0.1) by localhost with SMTP; 10 May 2005 11:27:56 -0000 X-Host-Fingerprint: 64.233.162.207 zproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.162.207:56880] helo=zproxy.gmail.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id C5/65-35155-CBA90824 for ; Tue, 10 May 2005 07:27:56 -0400 Received: by zproxy.gmail.com with SMTP id 34so2358942nzf for ; Tue, 10 May 2005 04:27:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cOQBCF5YCaUcy3TXcqhfixP3jnstuoog6j0CSXWmgQWGme1qhfVRj+ULSPIy77ZtV9EQy4kdwd0t5ITDzKNCcJfHCbKQbWRCyM1ghwNBmn44W7efs03BFoz7rszcpFRm2YkgFXv8/AlpHkvumAxkn0jiwhRgaGIKE2FgvEeNJMA= Received: by 10.36.2.17 with SMTP id 17mr1462284nzb; Tue, 10 May 2005 04:27:53 -0700 (PDT) Received: by 10.36.22.2 with HTTP; Tue, 10 May 2005 04:27:53 -0700 (PDT) Message-ID: <5c287472050510042712f55c31@mail.gmail.com> Date: Tue, 10 May 2005 06:27:53 -0500 Reply-To: Jason Sweat To: Markus Fischer Cc: internals@lists.php.net In-Reply-To: <42805529.8030500@fischer.name> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> <42805529.8030500@fischer.name> Subject: Re: [PHP-DEV] Re: new overloading feature? From: jason.sweat@gmail.com (Jason Sweat) On 5/10/05, Markus Fischer wrote: > 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. >=20 > Is there a way to reference constants from the same class (or dervived > class) in a friendlier way? Hi Markus, I often use self::SELF_EXPLAINING_CONSTANT_NUMBER_ONE when in context of a class method itself. HTH =20 Regards, Jason http://blog.casey-sweat.us/