From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28841 invoked by alias); 5 Jan 2010 09:49:42 -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: 27562 Received: (qmail 19174 invoked from network); 5 Jan 2010 09:49:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.2.5 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 5 Jan 2010 09:48:29 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Cc: Michael Hwang Subject: Re: [PATCH] Removed arbitrary limitations on array accesses Message-ID: <20100105094829.613883ab@news01> In-Reply-To: <1262655497-21263-1-git-send-email-michael.a.hwang@gmail.com> References: <1262655497-21263-1-git-send-email-michael.a.hwang@gmail.com> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Jan 2010 09:48:29.0554 (UTC) FILETIME=[3C375D20:01CA8DEC] X-Scanned-By: MailControl A-09-22-10 (www.mailcontrol.com) on 10.68.1.113 On Mon, 4 Jan 2010 20:38:17 -0500 Michael Hwang wrote: > This issue was brought up on IRC. It appears that while there is no limit on > how many array elements can be stored, there is a limit to how many can be > accessed. This patch removes these limits. Those have been there for a long time. I don't have any evidence that they're doing a lot of good but we have had people creating positional parameters with =something and wondering why it uses a lot of memory. I suppose this is similar. The arbitrary limit is not very useful and also undocumented; most people wouldn't miss it if it wasn't there, certainly. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom