Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84193 invoked from network); 30 Jun 2008 07:29:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2008 07:29:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.200.171 wf-out-1314.google.com Received: from [209.85.200.171] ([209.85.200.171:28355] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/71-09128-46B88684 for ; Mon, 30 Jun 2008 03:29:40 -0400 Received: by wf-out-1314.google.com with SMTP id 26so1366210wfd.26 for ; Mon, 30 Jun 2008 00:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JEgfpa4pmZLSsozsPNXVdEZ/556qD8K1ej2quaQSo80=; b=xs3GfyCXgXUkpRj6GrZ9pX+Ks7bRRs9pz8zwx4rPceoebcAwaWG88eKBKvh6hmZ2Ak 2tWQM06CrZdl3A4SlVBYAkpRTgTL5pud8grL7LHZKJwVcBrzveJnjwELAHsEtTIP5D4K M7lhjGsClF9As072/GVMDO6tqWpjqQ0o5jA2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XCnw55n4SQENULHt4tKZlWmrQIUORt2AdUEREwHtVhQ9y1YMpSAC2cuVKZe8SoWqwk jqa7/n+M6ArEyCQMsdeK67ji6I7rtF9CA55Xc5iqG1tc0mz90H5/P7E6sSLYORozanS0 d55oY+FtCPU7tYp2leXOtCK/83voSnsk4G0yA= Received: by 10.142.214.11 with SMTP id m11mr1733424wfg.95.1214810977341; Mon, 30 Jun 2008 00:29:37 -0700 (PDT) Received: by 10.142.110.9 with HTTP; Mon, 30 Jun 2008 00:29:37 -0700 (PDT) Message-ID: <98b8086f0806300029l278d7410wbec83e9f4e544104@mail.gmail.com> Date: Mon, 30 Jun 2008 09:29:37 +0200 To: internals@lists.php.net In-Reply-To: <1214779300.11320.23.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> <485A35A0.9050602@zend.com> <485AF253.2070400@gmx.net> <485B908D.7000106@zend.com> <4863C299.1080002@gmx.net> <1214777090.11320.13.camel@localhost> <48680A9F.50504@zend.com> <1214779300.11320.23.camel@localhost> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: troelskn@gmail.com ("troels knak-nielsen") On Mon, Jun 30, 2008 at 12:41 AM, Lars Strojny wrote: > Hi Stas, > > Am Sonntag, den 29.06.2008, 15:20 -0700 schrieb Stanislav Malyshev: > [...] >> If we use this syntax, and $view->escape is not defined, should we >> call __call or __get? > > That's indeed a good question. Calling __get() after resolving > $view->escape as a property would break BC. Maybe we would do the I really think, the only sane thing to do, is to invoke __call. Since lambda's are first-class, it would make sense to get rid of __call entirely, but as it's already there, I would say, that we should preserve BC. With the current behaviour (invoke __call), it's still possible to delegate to a lambda, from within the __call method. -- troels