From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6315 invoked from network); 26 Jul 2001 09:44:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Jul 2001 09:44:49 -0000 Received: (qmail 29616 invoked by alias); 26 Jul 2001 09:44:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15495 Received: (qmail 29604 invoked from network); 26 Jul 2001 09:44:42 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Nasty bug in array-element typeset assignments In-reply-to: "Borsenkow Andrej"'s message of "Thu, 26 Jul 2001 13:28:57 +0400." <001b01c115b5$657254a0$21c9ca95@mow.siemens.ru> Date: Thu, 26 Jul 2001 10:44:06 +0100 From: Peter Stephenson Borsenkow Andrej wrote: > > "Bart Schaefer" wrote: > > > local 'foo[1]'=X > > > > Is this supposed to be supported? I certainly haven't done anything about > > it. > > > > Yes, recent changes has enabled it. Yuk. Whoever decided on this has got a job on their hands. > I suspect, typeset is confused ... we > ask for foo[1] that does not yet exist, so dereferencing gives us outer foo > ... Typeset is going to get *very* confused. Each change like this multiplies, rather than adds to, the complexity of the already complicated typeset code. When you add to this the restore sequence, which is handled at the end of function scope with no detailed knowledge of what typeset has been up to, you've got something very difficult to maintain (which, personally, I'm not proposing to attempt). Good luck. -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************