Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32671 invoked from network); 18 Nov 2009 21:40:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2009 21:40:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:42265] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/A5-16241-5C9640B4 for ; Wed, 18 Nov 2009 16:40:21 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id E4562E11FF; Wed, 18 Nov 2009 13:37:55 -0800 (PST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 18 Nov 2009 13:40:18 -0800 Message-ID: <4B0469C3.4020503@zend.com> Date: Wed, 18 Nov 2009 13:40:19 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Chris Stockton CC: RQuadling@googlemail.com, internals@lists.php.net References: <4B01A4C2.8030602@gmx.net> <10845a340911180153g64333917p591dfff925f907fd@mail.gmail.com> <4B044070.1010607@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Nov 2009 21:40:18.0286 (UTC) FILETIME=[B8C6B0E0:01CA6897] Subject: Re: [PHP-DEV] Closures and $this From: stas@zend.com (Stanislav Malyshev) 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. but We 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