diff options
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index dea485c6..2535e45a 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -21658,7 +21658,7 @@ statement. The @code{@@let} statement is introduced by the @code{@@} symbol followed by the special keyword @code{let}. These tokens are -then followed by a comma-separated list of variable declarators, +then followed by a comma-separated or comma-terminated list of variable declarators, enclosed in parentheses. After the parentheses comes a required statement, The list of variables may be empty. @@ -21809,6 +21809,11 @@ The @code{print} statement is then executed in the scope of the rightmost @code{x}. The initializing expressions @code{x + 1} have the previous @code{x} still in scope. +The @code{@@let} statement allows a trailing comma after the last +variable declarator. Effectively, the declarators can be regarded +as either comma-separated or comma-terminated. Comma termination is +easier to deal with in macro preprocessing and code generation. + @node Pass By Value/Reference @subsubsection Passing Function Arguments by Value Or by Reference |