From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13221 invoked from network); 3 Sep 2001 17:44:18 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 2001 17:44:18 -0000 Received: (qmail 21749 invoked by alias); 3 Sep 2001 17:44:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15738 Received: (qmail 21735 invoked from network); 3 Sep 2001 17:44:05 -0000 From: Bart Schaefer Message-Id: <1010903174357.ZM11813@candle.brasslantern.com> Date: Mon, 3 Sep 2001 17:43:57 +0000 In-Reply-To: <1010903171420.ZM11666@candle.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Tetris" (Sep 3, 5:14pm) References: <1010903171420.ZM11666@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Zefram , zsh-workers@sunsite.dk Subject: Re: Tetris MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 3, 5:14pm, Bart Schaefer wrote: } } I end up (I think, I'm not sure) in vi insert mode when I press 's'. I figured it out. I set up the entire file as an autoloadable function, so the tetris_rotations array became a local. Might be useful to protect against that: --- tetris.0 Mon Sep 3 09:38:55 2001 +++ tetris Mon Sep 3 10:39:54 2001 @@ -4,7 +4,7 @@ tetris_hsz=11 tetris_vsz=20 tetris_shapes=(0x0f00 0x4e00 0x6600 0x4620 0x2640 0x2260 0x4460) -typeset -A tetris_rotations +typeset -gA tetris_rotations tetris_rotations=( 0x0f00 0x4444 0x4444 0x0f00 0x4e00 0x4c40 0x4c40 0x0e40 0x0e40 0x4640 0x4640 0x4e00 -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net