Re: Re: new overloading feature?
| From: | Jason Sweat | Date: | Tue, 10 May 2005 11:27:53 +0000 |
| Subject: | Re: Re: new overloading feature? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16193@lists.php.net to get a copy of this message | ||
On 5/10/05, Markus Fischer <markus@fischer.name> 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.
>
> 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
Regards,
Jason
http://blog.casey-sweat.us/