Re: Closures and $this
| From: | Stanislav Malyshev | Date: | Wed, 18 Nov 2009 21:40:19 +0000 |
| Subject: | Re: Closures and $this | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46092@lists.php.net to get a copy of this message | ||
Hi!
That syntax made my eyes hurt, but I think really the problem is that people want to dynamically add methods with $this in the closure pointing the the object it has been attached too. Really I like A. butWe can add method to Closure class to allow that. See Closure::bind and bindTo in the proposal. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com