Dne 23.5.2011 3:23, Felipe Pena napsal(a):
Hi,

2011/5/22 Matthew Weier O'Phinney<weierophin...@php.net>

One thing not on the RFC that I'm curious about: if the class defines
__invoke(), would the following work?

    new MyClass()();

That would be particularly useful for implementing helper systems, which
are quite often one-off use cases.


No, such feature was not planned in the RFC, the patch doesn't change the
grammar to allow it.




https://wiki.php.net/rfc/fcallfcall

Jaroslav Hanslik

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

Reply via email to