Re: Constants in namesapces

From: Date: Thu, 23 Aug 2007 16:58:07 +0000
Subject: Re: Constants in namesapces
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31869@lists.php.net to get a copy of this message
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);
That'd be hard - in runtime, you don't have namespace name. So either we should make define() an operator, or pass namespace name to it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31869) next »