On 11/29/2011 04:49 PM, de...@lucato.it wrote:
> Hi,
> 
> is the new dereferencing syntax definitely part of 5.4 ?
> 
> Will it be possible to replace this:
> 
> $model = new DomainModel('foo', 'bar');
> $result = $model->findByName('John');
> 
> with:
> 
> $result = (new DomainModel('foo', 'bar'))->findByName('John');
> 
> ?

Why don't you try it?  Download the latest RC from qa.php.net
./configure && make && make test (and send us the results)
and then you can test your code snippet.

-Rasmus



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

Reply via email to