Re: missing documentation for use-clause in closures?
| From: | Ferenc Kovacs | Date: | Fri, 03 Aug 2012 15:53:23 +0000 |
| Subject: | Re: missing documentation for use-clause in closures? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62011@lists.php.net to get a copy of this message | ||
On Fri, Aug 3, 2012 at 5:09 PM, Rasmus Schultz <rasmus@mindplay.dk> wrote:
> Is this all the documentation there is for the use-clause for
> anonymous closures?
>
> http://us2.php.net/manual/en/functions.anonymous.php
>
> For one, it would be nice to have documentation that explains whether
> the variables listed in the use-clause are copied/referenced at
> declaration-time or at call-time?
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
would be nice having more docs on that.
there are the two rfc's: https://wiki.php.net/rfc/closures and
https://wiki.php.net/rfc/closures/object-extension
but make sure to test
because AFAIR the rfc is a little bit behind the current implementation.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu