> The 'new' keyword has to apply to the object created in the constructor (and
> not the return value of any of the follow-up calls.)   To establish this
> precedence, chaining wasn't  allowed on constructors.

If precedence was the issue, why doesn't this work, either:

(new bob())->one()->two()

?  Or, rather, why couldn't that have been taken into consideration?

thnx,
Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to