diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:46:28 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-12 05:46:28 +0300 |
commit | 1bf8cb336c599fdd14a2c37d719f7c8879dd830a (patch) | |
tree | 8ac31693d32d25e8355863231d5eae5765b1ef14 /doc/gawk.texi | |
parent | c5c3cc18943913fb91a15d372a0d949d6436d0a7 (diff) | |
download | egawk-1bf8cb336c599fdd14a2c37d719f7c8879dd830a.tar.gz egawk-1bf8cb336c599fdd14a2c37d719f7c8879dd830a.tar.bz2 egawk-1bf8cb336c599fdd14a2c37d719f7c8879dd830a.zip |
Improve doc on use of SYMTAB.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 92cb57dc..6b2cf3cf 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -15119,9 +15119,28 @@ function multiply(variable, amount) @} @end example +@noindent +You would use it like this: + +@example +BEGIN @{ + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer +@} +@end example + +@noindent +When run, this produces: + +@example +$ @kbd{gawk -f answer.awk} +@print{} The answer is 42 +@end example + @quotation NOTE -In order to avoid severe time-travel paradoxes,@footnote{Not to mention difficult -implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} +In order to avoid severe time-travel paradoxes,@footnote{Not to mention +difficult implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} is available as an element within the @code{SYMTAB} array. @end quotation @end table |