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?
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. :-)
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?--
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
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?--
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
internals@lists.php.net/msg53817.html" rel="nofollow" target="_blank">http://www.mail-archive.com/internals@lists.php.net/msg53817.html
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu