Re: Class constants
| From: | Gary . | Date: | Mon, 19 Apr 2010 12:24:09 +0000 |
| Subject: | Re: Class constants | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304204@lists.php.net to get a copy of this message | ||
On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote:
> On 19 April 2010 10:30, Gary wrote:
>> Should I be able to do this:
>>
>> class X
>> {
>> const FOO = 'foo';
>> const FOOBAR = X::FOO . 'bar';
>>
>> ...
>> }
> So no, you shouldn't be able to do that.
Okay. Why not?