2013/7/23 Stas Malyshev <smalys...@sugarcrm.com> > Hi! > > > But actually I don't see: Why is "use" not enough? As far as I can see > your > > example, why it would introduce a BC, doesn't really match to original > > Consider this: > > use a\b\c as foo; > > foo(); > > Now it would resolve to global function foo(). If use were changed to > apply to functions, it would resolve to function \a\b\c() instead. >
But if I explicitly import "foo" this way, this is intended :? Yes, "foo" could also be a classname, but right now it is also not part of the language to detect collisions. Additional I have _never_ seen any core- or user-function, whose name could be a classname to. Of course I've never seen every function ever written, but even if this a real issue, how many people are really affected? Regards, Sebastian. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > -- github.com/KingCrunch