> -----Oorspronkelijk bericht-----
> Van: Lars Schultz [mailto:lars.schu...@toolpark.com]
> Verzonden: dinsdag 8 juni 2010 16:04
> Aan: internals@lists.php.net
> Onderwerp: Re: [PHP-DEV] [RFC] Array Dereferencing
> 
> >> $result = new ResultMaker()->getIt();
> 
> I know that this is not much of an argument, but it works the same way
> in Javascript too, which is very convenient. The intended behaviour is
> obvious...even though it could be (mis-)interpreted by php.
> 
> Lars
> 
> 
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php



I agree, this is obviously the intended behaviour.
As long as the door is still open to do:

$result = new (ResultMaker()->getIt());

To create an object of the class returned by the getIt() method.


-Dennis



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

Reply via email to