Re: closures questions

From: Date: Tue, 22 Jul 2008 20:48:13 +0000
Subject: Re: closures questions
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-39199@lists.php.net to get a copy of this message
Hello Lars, actually this is a very good idea and should work :-) marcus Tuesday, July 22, 2008, 10:15:03 PM, you wrote: > Hi Stas, > Am Dienstag, den 22.07.2008, 13:09 -0700 schrieb Stanislav Malyshev: > [...] >> I'm all for doing it, the problem is the syntax $foo->bar() is already >> used. But you can do $foo->bar->__invoke()! > Can't we change zend_std_get_method() to return a zend_internal_function > struct in case of a closure on a property? The only thing that needs to > be done would be to define the resolution order which is the trickier > thing. > cu, Lars Best regards, Marcus

« previous php.internals (#39199) next »