Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87683 invoked from network); 19 Jan 2010 10:30:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 10:30:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@iki.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@iki.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iki.fi from 204.13.248.71 cause and error) X-PHP-List-Original-Sender: jani.taskinen@iki.fi X-Host-Fingerprint: 204.13.248.71 mho-01-ewr.mailhop.org Received: from [204.13.248.71] ([204.13.248.71:61647] helo=mho-01-ewr.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/22-22457-7D9855B4 for ; Tue, 19 Jan 2010 05:30:47 -0500 Received: from a88-112-30-186.elisa-laajakaista.fi ([88.112.30.186] helo=localhost.localdomain) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.68) (envelope-from ) id 1NXBMC-00048n-Oa; Tue, 19 Jan 2010 10:30:44 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 88.112.30.186 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+Q80kvSLDTXOiRQaHzvkDbUIvyxAe+xAw= Message-ID: <4B5589D2.1000701@iki.fi> Date: Tue, 19 Jan 2010 12:30:42 +0200 Reply-To: jani.taskinen@iki.fi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0 MIME-Version: 1.0 CC: Stanislav Malyshev , PHP Internals References: <4B54FC87.8070106@zend.com> <68de37341001182329r7f3a87a6lb0784a532995630d@mail.gmail.com> In-Reply-To: <68de37341001182329r7f3a87a6lb0784a532995630d@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] function call chaining From: jani.taskinen@iki.fi (Jani Taskinen) On 01/19/2010 09:29 AM, Eddie Drapkin wrote: > On Tue, Jan 19, 2010 at 2:14 AM, Alexey Zakhlestin wrote: >> >> Would be nice if something like this worked too: >> >> (new Class())->method(); >> > I was just looking at some Java code and thinking, "man I wish PHP did this" Funny, I was just thinking the opposite "man I wish PHP never allows this" :) Can of worms I say, can of worms.. --Jani