Re: Closures and $this: Please vote!
| From: | Stanislav Malyshev | Date: | Tue, 15 Dec 2009 20:49:43 +0000 |
| Subject: | Re: Closures and $this: Please vote! | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46432@lists.php.net to get a copy of this message | ||
Hi!
Ok, so then I call for a vote. Again, here are the options:A+, no direct method calling (get/call problem would be messy) one additional thing: $a = static function () {} should leave $this not bound (in case for some reason you don't want it to be bound, e.g. to avoid keeping reference to a large object) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com