> I thought that was the whole point of namespaces. That you can include
> stuff without worries that things will conflict:
>
> namespace name1 {
>    define("CONSTANT", "Hello world.");
> }
>
> namespace name2 {
>    define("CONSTANT", "Hello mars.");
> }
>
> Would produce seporate constants because they're defined in different
> namespaces.
>
The lie in PHP defines is that they are declared at runtime, not compile
time.  Noone who has a workable implementation laid out is including
execution of the namespace scope as part of their plan.  Can define() be
reimplemented as a mixed runtime/compile-time construct? Yes.  But that
creates a whole mess of a pickle.

-Sara

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to