Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26175 invoked from network); 11 Aug 2010 14:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 14:37:06 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 ns.km36107.keymachine.de Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:45387] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/54-01618-195B26C4 for ; Wed, 11 Aug 2010 10:37:06 -0400 Received: from [192.168.1.31] (ppp-93-104-115-144.dynamic.mnet-online.de [93.104.115.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 577BE24E66; Wed, 11 Aug 2010 16:37:02 +0200 (CEST) To: Gustavo Lopes Cc: "internals@lists.php.net" In-Reply-To: References: <1281535067.1132.15.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Wed, 11 Aug 2010 16:37:01 +0200 Message-ID: <1281537421.1132.16.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Closures as methods (and Closure::bind) From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2010-08-11 at 15:29 +0100, Gustavo Lopes wrote: > > > * What about allowing properties with function names as > strings or > > array($obj_or_class, 'method'), won't that be needed for > being > > consistent with local variables? > > Well, you cannot do "$a = 'phpinfo'; $a();" as well, so it's > consistent with that. I think what you refer to would only make sense > if that were allowed. You can. This is valid. johannes