Hi Greg,
How about this: any non-namespaced file that uses "use" statements is
implicitly put into the __php__ namespace (or whatever other name is
chosen, or having the namespace name be the path of the file)? With
this, "use" will never import any symbols into the global namespace.
Regards,
Jessie
Ford, Mike wrote:
On 07 December 2007 17:36, Gregory Beaver wrote:
The suggestion to make "namespace __php__;" implicit is very
interesting, but would defeat its purpose, which is to separate
declarations from use.
Oh, I missed that little wrinkle -- I did say I was only skimming! I guess it
could still be done, but at somewhat greater cost in the engine than I was
imagining, which probably isn't worthwhile.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 812 4730 Fax: +44 113 812 3211
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php