From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10792 invoked by alias); 16 Nov 2016 16:53:43 -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: 39956 Received: (qmail 12564 invoked from network); 16 Nov 2016 16:53:43 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.2):SA:0(-2.9/5.0):. Processed in 1.246135 secs); 16 Nov 2016 16:53:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.208.100.2 as permitted sender) X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] Optimization of getarrvalue() From: "Jun T." In-Reply-To: <77EB3614-F9E2-4BEB-B93C-99DFD34A504F@kba.biglobe.ne.jp> Date: Thu, 17 Nov 2016 01:14:54 +0900 Content-Transfer-Encoding: 7bit Message-Id: <3B6E6A1A-14A3-4A20-9A53-395BF362FECB@kba.biglobe.ne.jp> References: <1478635899.1897979.781551353.05792438@webmail.messagingengine.com> <20161109114207.6b929440@pwslap01u.europe.root.pri> <161109080328.ZM6075@torch.brasslantern.com> <20161115195721.43648236@ntlworld.com> <77EB3614-F9E2-4BEB-B93C-99DFD34A504F@kba.biglobe.ne.jp> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 50594 2016/11/16 23:06, Jun T. wrote: > > I haven't yet understood how associative arrays are handled in C code, > but how about the following patch? With this patch all the test passes, But with the patch, and if a=() ,"${(@)a[i,j]}" is always removed from the command line; this is quite different from the current behavior. Maybe it's not a good idea.