bug-gnu-utils
[Top][All Lists]
Advanced

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

Gawk manual: 7.2 Referring to an Array Element


From: Hermann Peifer
Subject: Gawk manual: 7.2 Referring to an Array Element
Date: Thu, 13 Aug 2009 11:57:04 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Here a small enhancement request related to the Gawk manual. Section 7.2 says:
> ... array[index] ...
> ... index in array ..

http://www.gnu.org/software/gawk/manual/gawk.html#Reference-to-Elements

Some newcomers (like me some time ago) could try to literally use "for (index in array)...", which will throw a fatal error,as index is a reserved word for a built-in string function.

It would perhaps be better to consistently use "subscript" in the documentation, as in section 7.4

array[subscript] = value


Hermann




reply via email to

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