bug-gawk
[Top][All Lists]
Advanced

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

Re: small typo? in GNU Awk User’s Guide 5.1.1


From: arnold
Subject: Re: small typo? in GNU Awk User’s Guide 5.1.1
Date: Wed, 05 Jan 2022 12:23:48 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

Thanks. I just went with 'the_function' everywhere.

Arnold

J Naman <jnaman2@gmail.com> wrote:

> 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]