Re: Constans in namesapces
| From: | Johannes Schlüter | Date: | Wed, 22 Aug 2007 12:47:35 +0000 |
| Subject: | Re: Constans in namesapces | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31834@lists.php.net to get a copy of this message | ||
Hi Dmitry,
On Wed, 2007-08-22 at 13:02 +0400, Dmitry Stogov wrote:
> Hi,
>
> The proposed patch implements namespace support for constants.
> It allows to declare constants in namespaces in the same way as in classes.
> And these constants may be used in the same may as namespaces' functions.
I like the idea. Am I right with the assumption, from scrolling over the
patch, that "const" outside any namespace would work, too, meaning we
could get compile-time constants even outside a namespace?
johannes