Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82018 invoked from network); 4 Jun 2010 01:36:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2010 01:36:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=jonwage@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jonwage@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: jonwage@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:45908] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/2D-07323-C98580C4 for ; Thu, 03 Jun 2010 21:36:29 -0400 Received: by wya21 with SMTP id 21so548404wya.29 for ; Thu, 03 Jun 2010 18:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=v7wf4v7I3MQf9EFUhZPDARo87eswbqV1CmtnXQozGtE=; b=uBtwoy1TtsnCXQlj/+K8ZauAik8q1KSJTYtf2YCr9/cJLY+ROf5NegRelhkUNsz3Xq gU/GVUz/A91pKWPWt+X7T2xX7PgjZkiWu/IvT/tU3ahxjMCy1XH3Fi+PugNbP78J5zdi 5PWpZB8HgNJD457EWfxJwt9IaA51BjtLNN3Oo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=D3sMhPiLcC64PQ5cEqdduoh3Y2kGs7fHta34/7rUVr5WAiIzx94/8daDciwZE7aNhy UBnRdSNzGeKS7KElzoBaCwaOI6MNv9xhSf8eRAhSNsqiWtd1iRepUQW1Ilq1ENgD1s6c C50ek1IbtKLZxmOhwxmHOOJG27dMm8fWRwGNg= Received: by 10.216.85.194 with SMTP id u44mr1755145wee.10.1275615385176; Thu, 03 Jun 2010 18:36:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.232.195 with HTTP; Thu, 3 Jun 2010 18:36:05 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Jun 2010 21:36:05 -0400 Message-ID: To: Tig Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6d7e744e74c1004882a5931 Subject: Re: [PHP-DEV] Suggestion: echo function(var)[0]; From: jonwage@gmail.com (Jonathan Wage) --0016e6d7e744e74c1004882a5931 Content-Type: text/plain; charset=ISO-8859-1 Hi, Has anyone attempted a patch for this? Or does anyone have an idea of the feasibility? Is it technically possible in a good/clean way? - Jon On Thu, Jun 3, 2010 at 9:29 PM, Tig wrote: > On Fri, Jun 4, 2010 at 11:19 AM, Kalle Sommer Nielsen > wrote: > > Hi Tig > > > > 2010/6/4 Tig : > >> Would be at all possible to implement this kind of shortcut? > > > > Its called array-dereferencing and it was proposed countless times, > > including by myself. There is an RFC for this[1] and it was planned on > > the old PHP6 todo at the PDT[2]. > > > > [1] http://wiki.php.net/rfc/functionarraydereferencing > > [2] http://wiki.php.net/summits/pdmnotesmay09#php_6 (see point #13) > > > > Thanks Kalle, I had no idea what it would be called, so I had a hard > time searching for it :] > > I noticed that it has been 'declined' - Date: May 01, 2009 > (declined), http://wiki.php.net/rfc/functionarraydereferencing > > but, as pointed out at point 13 on > http://wiki.php.net/summits/pdmnotesmay09#php_6 > > function call chaining (f()() if f() returns function), and array > dereferencing (f()[0]) - (Stas) > > So does this mean array-dereferencing was original declined but still > a possible for PHP 6? > That is how I'm reading it, but just want to make sure. > > Again, thanks. > > -Tig > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org You should follow me on Twitter: http://www.twitter.com/jwage You can contact Jonathan about Doctrine, Symfony and Open-Source or for training, consulting, application development, or business related questions at jonathan.wage@sensio.com --0016e6d7e744e74c1004882a5931--