Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76622 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71823 invoked from network); 17 Aug 2014 23:13:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2014 23:13:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.75 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.75 smtp75.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.75] ([108.166.43.75:44019] helo=smtp75.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/76-28428-F2731F35 for ; Sun, 17 Aug 2014 19:13:52 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 649B418049F; Sun, 17 Aug 2014 19:13:48 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp2.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id F079D18046F; Sun, 17 Aug 2014 19:13:47 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Sun, 17 Aug 2014 23:13:48 GMT Message-ID: <53F1372B.9080207@sugarcrm.com> Date: Sun, 17 Aug 2014 16:13:47 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Andrea Faulds , Levi Morrison CC: PHP internals References: <235C617B-25E1-4185-A784-38EF1D7BFFDC@ajf.me> <38FC0B11-5E15-43E9-8467-347359970D46@ajf.me> In-Reply-To: <38FC0B11-5E15-43E9-8467-347359970D46@ajf.me> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE][RFC] Closure::call() From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > It does, but maybe you missed it. Under the Proposal section: > >> To solve this, we relax the current invariant of scoped closures >> having to be bound, and add a new parameter to bind(To) to produce >> an unbound, scoped closure, like so: Indeed, I missed it - I was looking for bindTo. I think it should be made more prominent, and I'm not sure what closure that is not static, but does not have a bound object, means. What happens if you call it? It sounds a bit strange concept - why would you need a closure that is not static, but is not bound to any object? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/