Hi! > I think that using :: on a variable that contains an object should not > "fall back" to a static access on the object's class. Instead the > runtime should error out.
Why should it not do what it does now? What would it achieve? I don't see any improvement in changing that - it may break code that is using this facility, and it won't make anything better. True, this is an exotic and non-obvious feature, but many languages have such features, which are used only by people that need them. If we proposed to add such feature, true, it may be too exotic to be added on its own merits, but since it is already there (and, probably, used in some code somewhere) - why bother messing with it? I don't see how just leaving it be hurts anything. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php