From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16878 invoked from network); 7 Feb 2007 16:33:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Feb 2007 16:33:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 8374 invoked from network); 7 Feb 2007 16:33:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Feb 2007 16:33:53 -0000 Received: (qmail 21755 invoked by alias); 7 Feb 2007 16:33:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23158 Received: (qmail 21746 invoked from network); 7 Feb 2007 16:33:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Feb 2007 16:33:48 -0000 Received: (qmail 7945 invoked from network); 7 Feb 2007 16:33:48 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 7 Feb 2007 16:33:42 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly17c.srv.mailcontrol.com (MailControl) with ESMTP id l17GXRkT023658 for ; Wed, 7 Feb 2007 16:33:37 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 7 Feb 2007 16:33:32 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l17GXRuY014291 for ; Wed, 7 Feb 2007 16:33:27 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l17GXRqR014288 for ; Wed, 7 Feb 2007 16:33:27 GMT Message-Id: <200702071633.l17GXRqR014288@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: ordering of hash table scans In-reply-to: <070207080611.ZM15476@torch.brasslantern.com> References: <200702062142.l16LgOoa007853@pwslaptop.csr.com> <070207080611.ZM15476@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Wed, 07 Feb 2007 08:06:11 -0800." Date: Wed, 07 Feb 2007 16:33:27 +0000 From: Peter Stephenson X-OriginalArrivalTime: 07 Feb 2007 16:33:32.0272 (UTC) FILETIME=[B4A79700:01C74AD5] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-06-80 (www.mailcontrol.com) on 10.67.0.127 Bart Schaefer wrote: > The only thing I could imagine is if someone were relying on use of a > hashtable to "randomize" the order of some list of items; but that > seems unlikely, and certainly there was no promise it would work. They'd have to be doing it by using builtin queries ("typeset -m", "alias -m", etc. etc.), which is even more unlikely. Hash tables substituted onto the command line still aren't sorted --- I only changed it for cases where the output is printed immediately, so: % typeset -A hashtable % hashtable=(a A b B c C d D e E f F g G) % print ${(kv)hashtable} f F g G a A b B c C d D e E (It confused me when I tried it with just a, b and c to begin with...) There have always been the "o" and "O" flags to request an order here, anyway. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview