On Mon, 2010-11-29 at 12:18 -0600, la...@garfieldtech.com wrote: > Another advantage here would presumably be performance. If there's > no > getter defined then the engine could simply map $foo->bar to the > class > member directly (which is really fast) and not to a method, so > there's > no added overhead there. That still leaves the question of what > happens > with name collisions, though.
Don't kow what you mean by "the engine" in this case? The compiler? - no the compiler can't a) it has no idea what type $foo is b) think about inheritance etc. The executor - well there's no win possible. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php