Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:52504 php.internals:52506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46317 invoked from network); 23 May 2011 07:42:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2011 07:42:57 -0000 X-Host-Fingerprint: 62.168.26.251 gw102.nova.cz Received: from [62.168.26.251] ([62.168.26.251:13172] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/11-34196-7FF0ADD4 for ; Mon, 23 May 2011 03:42:47 -0400 To: internals@lists.php.net,Felipe Pena Message-ID: <4DDA0FF3.2080402@kukulich.cz> Date: Mon, 23 May 2011 09:42:43 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 CC: Matthew Weier O'Phinney , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 62.168.26.251 Subject: Re: [PHP-DEV] Constructor object instance dereferentiation From: konference@kukulich.cz (Jaroslav Hanslik) Dne 23.5.2011 3:23, Felipe Pena napsal(a): > Hi, > > 2011/5/22 Matthew Weier O'Phinney > >> One thing not on the RFC that I'm curious about: if the class defines >> __invoke(), would the following work? >> >> new MyClass()(); >> >> That would be particularly useful for implementing helper systems, which >> are quite often one-off use cases. >> >> > No, such feature was not planned in the RFC, the patch doesn't change the > grammar to allow it. > https://wiki.php.net/rfc/fcallfcall Jaroslav Hanslik