Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20198 invoked by uid 1010); 5 Feb 2007 18:35:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20182 invoked from network); 5 Feb 2007 18:35:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 18:35:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=truth@proposaltech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=truth@proposaltech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain proposaltech.com from 66.51.199.86 cause and error) X-PHP-List-Original-Sender: truth@proposaltech.com X-Host-Fingerprint: 66.51.199.86 exbe04.ex.dslextreme.net Windows 2000 SP4, XP SP1 Received: from [66.51.199.86] ([66.51.199.86:48495] helo=EXVS01.ex.dslextreme.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/D7-61367-ED877C54 for ; Mon, 05 Feb 2007 13:35:11 -0500 Received: from 71.130.255.45 ([71.130.255.45]) by EXVS01.ex.dslextreme.net ([192.168.7.220]) via Exchange Front-End Server owa.dslextreme.net ([192.168.7.126]) with Microsoft Exchange Server HTTP-DAV ; Mon, 5 Feb 2007 18:35:04 +0000 Received: from notebook by owa.dslextreme.net; 05 Feb 2007 10:35:13 -0800 To: Andrei Zmievski Cc: ceo@l-i-e.com, Christian Schneider , Andi Gutmans , internals@lists.php.net In-Reply-To: <3e74be4952d0cb2f771d095053225624@gravitonic.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> <3e74be4952d0cb2f771d095053225624@gravitonic.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 05 Feb 2007 10:28:49 -0800 Message-ID: <1170700129.15039.219.camel@notebook.local> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: truth@proposaltech.com (Todd Ruth) Would this be legal? function f() { return [ 1, 2 ]; } $x = [ $a, $b ] = f(); In the end, would we have...? $a = 1; $b = 2; $x = array(1,2); I'm not trying to be positive or negative about the syntax. I'm just "testing" somewhat edge cases. - Todd On Mon, 2007-02-05 at 10:06 -0800, Andrei Zmievski wrote: ... > The way I view [] is that it creates an array "context". When the > context is an RHS, it instantiates an array. When it's an LHS, the > context deconstructs the array. > > -Andrei >