Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56078 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33609 invoked from network); 5 Nov 2011 20:05:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2011 20:05:28 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:51017] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/70-25672-60795BE4 for ; Sat, 05 Nov 2011 15:05:27 -0500 Received: by iakc1 with SMTP id c1so4611750iak.29 for ; Sat, 05 Nov 2011 13:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=k7PBwf9NpCl5Q4fbEM2VwHYZfvJ9ZHjrYsbHfVhxxHs=; b=dH22cM2dMFx6Uh54rD5eyxGrbaj9OkrMEqOP77Rr9OVD9JlzyQCdYiX2rn9R0OLwuy UjMnlpuyOVS1LVIZsK5objdXpngRFLShTLuykbgzY0uW85+8v6HJXUSB9+uKlWnAx6VF b1WR+3M5Gtn15+rUs6BBmLOHw5ugggaRkuBt4= Received: by 10.42.161.70 with SMTP id s6mr28666738icx.40.1320523523270; Sat, 05 Nov 2011 13:05:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.63.169 with HTTP; Sat, 5 Nov 2011 13:04:43 -0700 (PDT) In-Reply-To: References: Date: Sat, 5 Nov 2011 20:04:43 +0000 Message-ID: To: Felipe Pena Cc: internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] new foo()->bar() From: petercowburn@gmail.com (Peter Cowburn) On 26 November 2010 19:36, Felipe Pena wrote: > Hi all, > I'm here again to presents another proposal, which adds support for > instantiating a class and calling its methods and accessing its propertie= s > on same command. > > Example: > > > class bar { > =A0public $x =3D 'PHP'; > } > > class foo extends bar { > =A0public function bar() { > =A0 =A0return $this; > =A0} > } > > var_dump(new foo()->bar()->x); // string(3) "PHP" > > ?> > > Other examples which describes the feature at > http://wiki.php.net/rfc/instance-method-call > > Thoughts? Bump. What's the current status on this? It would be nice to this teeny little patch in for 5.4.0 if possible. > > -- > Regards, > Felipe Pena >