2007/12/4, Gregory Beaver <[EMAIL PROTECTED]>: > > Martin Alterisio wrote: > > It's also not possible to reliably bundle files even if you could have > > multiple namespaces declarations as, correct me if I'm wrong, import > > statements affect the whole file, there is no way to "unimport", a > > name clash could still occur. > > OK, I'll correct you: you're wrong. The patch resets import at each > namespace declaration. Each chunk (as far as namespace and import > declarations) acts as its own file. global variables, constants, and > everything else that would carry over from file to file if included > continues to function normally.
Knowing that I'll have to strongly encourage the developers to dump that patch. The namespace declaration shouldn't do more than what it's expected to do. Why this: namespace yadayada; import yadayada; Should work different that: import yadayada; namespace yadayada; ?