Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93756 invoked from network); 19 Jan 2010 10:55:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 10:55:40 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.218.227 mail-bw0-f227.google.com Received: from [209.85.218.227] ([209.85.218.227:44986] helo=mail-bw0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/73-22457-BAF855B4 for ; Tue, 19 Jan 2010 05:55:40 -0500 Received: by bwz27 with SMTP id 27so164042bwz.1 for ; Tue, 19 Jan 2010 02:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=z63gV0o7Gmg9lHS0S9SjA6sXdW6/DGdTCn8Dt9fRrtY=; b=bhdui/Rb63uRD+Gmz1UJmBUfsrdLuA/1HStGHLbrlXZgUbdTfQVMlE7/7zuVyb0suL uas6p2WC/HOS4sdWKHeSGcH9vGU6C39rqTPvovaF04qhRE5xsbzVcGjAIo38WsoasINJ yl2Ge7GcJQM+x/7/PTk0S7DksRBnCxdgxrxEE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=W78FeZ7a87mjGaTlVgthVTPwglGI168rW4t9NQmcWFnlW6uWSrqOChv+U7h8rfki7h l3EjnMlYlwDrEiKJ+8lZuVGj1IevVTLz9+EUnKSAuH2uEK6WloYgWE097aiYW0JbHsg5 Uh38JFpN8e7/vAy9zZYCup9W+yc0DCiD/R7MQ= Received: by 10.204.34.3 with SMTP id j3mr4137875bkd.23.1263898536388; Tue, 19 Jan 2010 02:55:36 -0800 (PST) Received: from ?192.168.1.15? ([93.185.190.227]) by mx.google.com with ESMTPS id 14sm1120346bwz.1.2010.01.19.02.55.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 02:55:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: <4B558DBF.6020100@cschneid.com> Date: Tue, 19 Jan 2010 13:55:32 +0300 Cc: 'PHP Internals' Content-Transfer-Encoding: quoted-printable Message-ID: <0F4BC787-02F1-4C31-AD8A-0BD867769A7B@gmail.com> References: <4B54FC87.8070106@zend.com> <4B558DBF.6020100@cschneid.com> To: Christian Schneider X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] function call chaining From: indeyets@gmail.com (Alexey Zakhlestin) On 19.01.2010, at 13:47, Christian Schneider wrote: > Alexey Zakhlestin wrote: >> Would be nice if something like this worked too: >> (new Class())->method(); >=20 > If you *really* want to do this you can use a factory method: > Class::create()->method(); I know. That's what I do if I need it. Or just create temporary variable But, still, I want consistent syntax, which doesn't put limitations on = me this construct is an example of things, which many people take for = granted and are shocked, when they discover, that they can't use it. I saw a lot of questions on forums regarding it=