SO,
I have an issue with dynamic object creation using namespaces. Here\'s namespace code:
namespace Foo
{
class Bar
{
}
}
No
Only the parser uses your namespace aliases to canonicalize the class references inside each of your files.
In other words, it doesn't introduce some kind of global alias that other code can use. Once your script has been parsed, the alias is no longer used.
This behaviour is also described in the manual:
Importing is performed at compile-time, and so does not affect dynamic class, function or constant names.