Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80503 invoked from network); 4 Jun 2010 01:29:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2010 01:29:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=tigger.on@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tigger.on@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tigger.on@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:55763] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/DC-07323-7F6580C4 for ; Thu, 03 Jun 2010 21:29:27 -0400 Received: by vws15 with SMTP id 15so950688vws.29 for ; Thu, 03 Jun 2010 18:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=DUF8fmmPkfZ6z86RAggP674zMyMju9lfXtRiM53Bi2Q=; b=qFpUw47eLy/q/0hdL6PZIhlJffVy1JT64pJiK5ORZxjbDV0l/dMf53xM5lEa+mkjM8 r+P0nzcfoAxGs94YDYDq9KOjZjmVhU3s3UabfUEyKjKzMtR/TDecpxMM4kBquXJNmwfA phTfgr1sRWP6H73W6P0FpnkGcuQPUAmGGVDFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=M/OglO19MFY9bI2CrQ8uNAKaB+bH4bsEgybMLDOagJYn2OA5na51HQ3jJh0SAa/WlN SZeOg/reB6+5emobHa/ya6HHzEcWt12yYpnbc24+LhgENMZ94Et8iQMtaKtqI67d2BS6 VlGwkGHLlxit7PbXX8rbdVM/DOYH+xfSSSV6g= MIME-Version: 1.0 Received: by 10.224.88.90 with SMTP id z26mr5233540qal.113.1275614964384; Thu, 03 Jun 2010 18:29:24 -0700 (PDT) Received: by 10.229.100.129 with HTTP; Thu, 3 Jun 2010 18:29:24 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jun 2010 11:29:24 +1000 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Suggestion: echo function(var)[0]; From: tigger.on@gmail.com (Tig) 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