Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90994 invoked from network); 19 Jan 2010 10:47:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 10:47:33 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.6 Received: from [195.226.6.51] ([195.226.6.51:58238] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/D2-22457-3CD855B4 for ; Tue, 19 Jan 2010 05:47:32 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 82464171D55; Tue, 19 Jan 2010 11:47:28 +0100 (CET) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HWK4O-a-TTus; Tue, 19 Jan 2010 11:47:28 +0100 (CET) Received: from [192.168.1.72] (80-219-163-117.dclient.hispeed.ch [80.219.163.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 294D016E5FC; Tue, 19 Jan 2010 11:47:28 +0100 (CET) Message-ID: <4B558DBF.6020100@cschneid.com> Date: Tue, 19 Jan 2010 11:47:27 +0100 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Alexey Zakhlestin CC: 'PHP Internals' References: <4B54FC87.8070106@zend.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] function call chaining From: cschneid@cschneid.com (Christian Schneider) Alexey Zakhlestin wrote: > Would be nice if something like this worked too: > (new Class())->method(); If you *really* want to do this you can use a factory method: Class::create()->method(); - Chris