From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26944 invoked from network); 6 Oct 2002 05:33:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Oct 2002 05:33:15 -0000 Received: (qmail 2777 invoked by alias); 6 Oct 2002 05:32:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17776 Received: (qmail 2699 invoked from network); 6 Oct 2002 05:32:34 -0000 Date: Sun, 6 Oct 2002 01:32:29 -0400 From: Clint Adams To: Oliver Kiddle Cc: Zsh workers Subject: Re: db module Message-ID: <20021006053229.GA14350@dman.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) > typeset -A things -S db -f /tmp/newdb > typeset string -S mapfile -f /tmp/file Someone suggested tying assocs to functions, so we could add something like f() { print $(( $1 * 2 )) } typeset -A twice -S function -f f print $f[2] I'm not sure that there are any useful applications for this though.