Re: Re: PATCH: anonymous functions in PHP
| From: | Richard Lynch | Date: | Mon, 19 Mar 2007 20:23:53 +0000 |
| Subject: | Re: Re: PATCH: anonymous functions in PHP | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28440@lists.php.net to get a copy of this message | ||
On Sun, March 18, 2007 7:30 pm, Wez Furlong wrote:
> I found another flaw; when used in a loop it keeps trying to declare
> the same function over and over. I think this is because the
> ZEND_DECLARE_FUNCTION opcode is emitted as part of the arg list
> building op sequence.
>
> I'm poking to find an elegant way to fix that.
Would the function body/arglist be allowed to change based on the loop
data? [shudder]
It's starting to sound like Lisp :-)
Though I guess if you need anonymous functions, you probably need them
with varying bodies as well.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?