Re: YANP (Yet Another Namespace Proposal)

From: Date: Sun, 10 Jul 2005 09:43:52 +0000
Subject: Re: YANP (Yet Another Namespace Proposal)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17215@lists.php.net to get a copy of this message
JH>>- Classes may not contain colons (no change here), BUT class name references JH>>CAN contain colons (this is KEY!). JH>>- All imports are done at compile time. JH>>- Imports only affect the current file (yes, this has been done!) The problem here is that once you have somewhat developed package - like PEAR packages - which may contain dozens of internal classes, you'd have to have a large import statement block at the beginning of each file using them - or refer to them all by the full name, thus just replacing underscore-notation with colon-notation. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.internals (#17215) next »