PHP 5.4 added support for expressions of the kind (new Foo)->bar(), (new
Foo)->bar and (new Foo)['bar'].

I'd like to extend this support to any expression instead of just new.

I like it, we discussed this 2 years ago, could you address my original use case? Would it work:

   $value = ($obj = new Foo)->produceAValue();

http://news.php.net/php.internals/56684

-ralph

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to