aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-05-03 20:35:04 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-05-03 20:35:04 +0300
commit6fba98cc55aaba2b8819eaaca927c24c480cc332 (patch)
tree2946c46528a9b7d86529b1870b0e561413c8058c /doc/gawktexi.in
parent2eb0932e9eb3a4a4ff05ab8831d7e89c2d554004 (diff)
parent6f2c655186b7de2a95cca0403eb899dd2ab27c75 (diff)
downloadegawk-6fba98cc55aaba2b8819eaaca927c24c480cc332.tar.gz
egawk-6fba98cc55aaba2b8819eaaca927c24c480cc332.tar.bz2
egawk-6fba98cc55aaba2b8819eaaca927c24c480cc332.zip
Merge branch 'feature/bool' of ssh://git.sv.gnu.org/srv/git/gawk into feature/bool
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 57a87eba..75607b2b 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -17531,8 +17531,8 @@ available in compatibility mode (@pxref{Options}):
@c @asis for docbook
@table @asis
-@item @code{bool(@var{expression})}
-@cindexgawkfunc{bool}
+@item @code{bmkool(@var{expression})}
+@cindexgawkfunc{mkbool}
Return a Boolean-typed value based on the regular Boolean value
of @var{expression}. Boolean ``true'' values have numeric value one.
Boolean ``false'' values have numeric
@@ -28381,11 +28381,10 @@ It's easy to import Boolean data into @command{awk}, but then the fact
that it was originally Boolean is lost. Exporting data is even harder;
there's no way to indicate that a value is really Boolean.
-To solve this problem, @command{gawk} provides a function named @code{bool()}.
+To solve this problem, @command{gawk} provides a function named @code{mkbool()}.
It takes one argument, which is any @command{awk} expression, and it
returns a value of Boolean type.
-@c HERE
The returned values are normal @command{awk} numeric values, with
values of either one or zero,
depending upon the truth
@@ -28402,7 +28401,7 @@ While it would have been possible to add two new built-in variables
of Boolean type named @code{TRUE} and @code{FALSE}, doing so would
undoubtedly have broken many existing @command{awk} programs. Instead,
having a ``generator'' function that creates Boolean values gives
-flexibility, without breaking any existing code.
+flexibility, without breaking as much existing code.
@node Array Sorting
@section Controlling Array Traversal and Array Sorting