From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24605 invoked by alias); 5 Dec 2014 08:05:50 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33853 Received: (qmail 27357 invoked from network); 5 Dec 2014 08:05:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=MJ3XQ3dg c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=1Ss-pCLjFOIuJ1so08QA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141205000551.ZM9630@torch.brasslantern.com> Date: Fri, 05 Dec 2014 00:05:51 -0800 In-reply-to: Comments: In reply to Mikael Magnusson "Re: PATCH: Explain array append a bit better" (Dec 5, 8:28am) References: <141203205120.ZM7564@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: PATCH: Explain array append a bit better MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 5, 8:28am, Mikael Magnusson wrote: } } Should we perhaps mention array prepending somewhere too? I suppose, but it's a special case of array slice assignment whereas append is a whole different assignment operator with special behavior for associative arrays. Consequently I think this text ... } +To prepend to an array, use the syntax (requires that tt(KSH_ARRAYS) } +and tt(KSH_ZERO_SUBSCRIPT) are not set): } +ifzman() } +indent(var(name)tt([)var(1,0)tt(]=LPAR())var(value) ...tt(RPAR())) ... ought to be in "15.2.2 Array Element Assignment" rather than in the introductory paragraphs in "15.2 Array Parameters". Otherwise you're introducing subscript assignment syntax without having told the reader what it means.