Re: [RFC] Allow "use( $longname as $alias)" syntax for closures declaration
| From: | Nikita Popov | Date: | Fri, 13 Apr 2012 12:36:28 +0000 |
| Subject: | Re: [RFC] Allow "use( $longname as $alias)" syntax for closures declaration | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59875@lists.php.net to get a copy of this message | ||
On Fri, Apr 13, 2012 at 2:02 AM, Xinchen Hui <laruence@gmail.com> wrote:
> This $this is not that $this , plz thinking :
> $closuer->bindTo
>
> And $this become the new scope, but the alias still refer to the obj
> who own this closure.
That makes sense. Thanks.