Re: Constants in namesapces

From: Date: Thu, 23 Aug 2007 10:14:56 +0000
Subject: Re: Constants in namesapces
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31865@lists.php.net to get a copy of this message
On 23.08.2007 13:46, Dmitry Stogov wrote:
I think we must cut the patch to use only "compile-time" constants in namespaces. For runtime constants we can use existing define(). This will fix inconsistency. We also can extend define() with additional argument that will allow to create namespace constant. function define(string $var, mixed $val, bool namespace_constant = false);
Sounds good to me. Any other ideas? Anyone? -- Wbr, Antony Dovgal

« previous php.internals (#31865) next »