Rasmus Schultz | 3 Aug 2012 17:09
Picon
Gravatar

[PHP-DEV] missing documentation for use-clause in closures?

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

Peter Cowburn | 3 Aug 2012 17:21
Picon
Gravatar

Re: [PHP-DEV] missing documentation for use-clause in closures?

On 3 August 2012 16:09, Rasmus Schultz <rasmus <at> 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?
>

https://edit.php.net/  -- Go wild. :-)

--

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

Ferenc Kovacs | 3 Aug 2012 17:53
Picon
Gravatar

Re: [PHP-DEV] missing documentation for use-clause in closures?

On Fri, Aug 3, 2012 at 5:09 PM, Rasmus Schultz <rasmus <at> 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
 <at> Tyr43l - http://tyrael.hu
Ferenc Kovacs | 3 Aug 2012 18:04
Picon
Gravatar

Re: [PHP-DEV] missing documentation for use-clause in closures?

On Fri, Aug 3, 2012 at 5:53 PM, Ferenc Kovacs <tyra3l <at> gmail.com> wrote:

>
>
> On Fri, Aug 3, 2012 at 5:09 PM, Rasmus Schultz <rasmus <at> 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.
>
>
>
See also the discussion at
http://www.mail-archive.com/internals <at> lists.php.net/msg53817.html

(Continue reading)


Gmane