bug-gawk
[Top][All Lists]
Advanced

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

small typo? in GNU Awk User’s Guide 5.1.1


From: J Naman
Subject: small typo? in GNU Awk User’s Guide 5.1.1
Date: Thu, 30 Dec 2021 11:58:52 -0500

small typo? in GNU Awk User’s Guide 5.1.1 (and 5.1.0)
9.3 Indirect Function Calls
as is currently:
----------------------
the_func = "sum"
result = @the_func() # calls the sum() function
...
the_function = $i
printf("\t%s: <%s>\n", $i, @the_function(start, NF) "")
...
@the_func()
gawk looks up the actual function to call only once.
----------------------
In the example, it seems like it would be possibly less confusing to
a) change "the_function" to "the_func" (for consistency)
b) or change "the_function" to "stats_function (to make it entirely
different from the_func() )
c) or leave be, trivial change. In which case, apologies for wasting time.
----------------------
in both PDF & HTML:
https://www.gnu.org/s/gawk/manual/gawk.pdf
https://www.gnu.org/software/gawk/manual/html_node/Strong-Regexp-Constants.html#Strong-Regexp-Constants

'Best, John Naman, gawker@703n.com


reply via email to

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