Re: Re: new overloading feature?
| From: | Marcus Boerger | Date: | Tue, 10 May 2005 08:03:56 +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-16192@lists.php.net to get a copy of this message | ||
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