Re: Constructor object instance dereferentiation
| From: | Jaroslav Hanslik | Date: | Mon, 23 May 2011 07:42:43 +0000 |
| Subject: | Re: Constructor object instance dereferentiation | ||
| References: | 1 2 3 4 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-52506@lists.php.net to get a copy of this message | ||
Dne 23.5.2011 3:23, Felipe Pena napsal(a):
Hi, 2011/5/22 Matthew Weier O'Phinney<weierophinney@php.net>https://wiki.php.net/rfc/fcallfcall Jaroslav HanslikOne thing not on the RFC that I'm curious about: if the class defines __invoke(), would the following work?No, such feature was not planned in the RFC, the patch doesn't change the grammar to allow it.new MyClass()();That would be particularly useful for implementing helper systems, which are quite often one-off use cases.