MB>>namespace Foo
MB>>{

class Behaviour {
MB>>   const XYZ = 42;
}

MB>>   class Bar
MB>>   {
MB>>     const XXXX = Foo::XYZ;
const XXXX =  Behaviour::XYZ;
MB>>     //...
MB>>   }

etc. What's wrong with that? Except for the fact that now you can move 
these classes to another namespace if you wanted to and need not to 
hardcode namespace name in each class? :)

-- 
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115

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

Reply via email to