From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7377 invoked from network); 11 Nov 1998 14:50:14 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 11 Nov 1998 14:50:14 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id JAA28161; Wed, 11 Nov 1998 09:45:28 -0500 (EST) Resent-Date: Wed, 11 Nov 1998 09:45:28 -0500 (EST) Sender: B.Stephens@isode.com To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: PATCH: 3.1.5 - sample associative array implementation References: <9811111358.AA51361@ibmth.df.unipi.it> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Bruce Stephens Date: 11 Nov 1998 14:43:21 +0000 In-Reply-To: Peter Stephenson's message of "Wed, 11 Nov 1998 14:58:45 +0100" Message-ID: X-Mailer: Gnus v5.6.27/XEmacs 20.4 - "Emerald" Resent-Message-ID: <"Clf3c2.0.yt6.8CQIs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4600 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Peter Stephenson writes: > This can probably be fixed in a perl-like fasion by adapting > setarrvalue(), which should be reasonably painless, though I haven't > looked at the details yet. One question is whether > hash=(key1 val1 key2 val2) > replaces the array entirely, or just adds/replaces those elements. In > the former case it's difficult to think of a way of replacing multiple > elements at once; maybe another new typeset flag. What does ksh93 provide in the way of associative array functionality? (I don't have it installed at work, so I can't look it up right not.) I'm not suggesting that ksh93 is always right about everything, but it would surely be a good starting point, and a zsh which contained ksh93 as a subset would be much more convenient than having gratuitous syntactic differences. Except in those places where ksh93 is just wrong, of course.