diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-16 10:09:03 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-16 10:09:03 +0300 |
commit | 456fd40ebbb78fe31b28bbe0907282c685bce170 (patch) | |
tree | 4ba94ebd0e8fc597db62b24d86b4ae0a02be4857 /doc/gawktexi.in | |
parent | 5521633779b34da5d4fdd2728c48e1636b0bde7a (diff) | |
download | egawk-456fd40ebbb78fe31b28bbe0907282c685bce170.tar.gz egawk-456fd40ebbb78fe31b28bbe0907282c685bce170.tar.bz2 egawk-456fd40ebbb78fe31b28bbe0907282c685bce170.zip |
Make builtin shadowing work. Add test and doc.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index aa2a78f3..663353d4 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -4811,6 +4811,13 @@ Similarly, you may use @code{print} or @code{printf} statements in the @var{init} and @var{increment} parts of a @code{for} loop. This is another long-undocumented ``feature'' of Unix @command{awk}. +@command{gawk} lets you use the names of built-in functions that are +@command{gawk} extensions as the names of parameters in user-defined functions. +This is intended to ``future-proof'' old code that happens to use +function names added by @command{gawk} after the code was written. +Standard @command{awk} built-in functions, such as @code{sin()} or +@code{substr()} are @emph{not} shadowed in this way. + @end ignore @node Invoking Summary |