diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-13 06:15:48 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-13 06:15:48 +0300 |
commit | b91a006f9188fdf5249720329c1960ea9d3f3e19 (patch) | |
tree | 23c31df655172d3187e370dc494d9a887cce7b8b /doc/gawk.texi | |
parent | c86137f472fdf876c2c223c8d99f673f477b7554 (diff) | |
parent | a9c8a8bb7f6920ed2bc9d7f1668a200b8a4f9cdf (diff) | |
download | egawk-b91a006f9188fdf5249720329c1960ea9d3f3e19.tar.gz egawk-b91a006f9188fdf5249720329c1960ea9d3f3e19.tar.bz2 egawk-b91a006f9188fdf5249720329c1960ea9d3f3e19.zip |
Merge branch 'master' into feature/nocopy
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 a4a1e8d7..64d72b7a 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -15386,9 +15386,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 |