Re: Namespace question
| From: | Alexey Zakhlestin | Date: | Fri, 17 Aug 2007 16:34:00 +0000 |
| Subject: | Re: Namespace question | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31692@lists.php.net to get a copy of this message | ||
"const" keyword is currently allowed only inside class-definitions;
generic constants are specified using "define()"
On 8/17/07, David Coallier <davidc@php.net> wrote:
> Hey guys, looking at the minutes meeting from the paris conf
> (http://php.net/~derick/meeting-notes.html), I was wondering if "
> Constants in name spaces are allowed unless we find problems with the
> implementation. " were implemented. I tried but putting
>
> namespace MyPackage;
> const NAME = 'inspace';
>
>
> Then I get a parse error. (Unexpected T_CONST..)
>
> Is that normal ? Looking at the minutes notes I can not really see
> what of this list that has been discussed by the attendees has been
> implemented.
>
> Enlighten me someone please.
>
> And yes these notes were built nearly 2 years ago.
>
> Thanks for your replies.
>
> --
> David Coallier,
> Founder & Software Architect,
> Agora Production (http://agoraproduction.com)
> 51.42.06.70.18
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/