bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Can a key in a array be deleted while the array is iterat


From: Andrew J. Schorr
Subject: Re: [bug-gawk] Can a key in a array be deleted while the array is iterated?
Date: Tue, 3 Jan 2017 08:28:24 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Jan 01, 2017 at 10:19:26PM -0500, Andrew J. Schorr wrote:
>    for (index in array)
>        delete array[index]

Oops. Hermann Peifer pointed out in a private email that this code doesn't
actually work, since "index" is a builtin function name that is reserved.
My mistake for copying from the posix awk specification. How do we get
them to fix the spec man page?

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]