summaryrefslogtreecommitdiff
path: root/doc/ref/api-data.texi
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2014-01-12 04:36:02 -0500
committerMark H Weaver <mhw@netris.org>2014-01-14 02:24:24 -0500
commit7a329029cf898fc0b9b24252c9bb437e1ad0b1d7 (patch)
tree24a0298953a4ff3c16c0c102d06eb451bbc33c43 /doc/ref/api-data.texi
parent61d509194c6ce90e678a0b27d613f3656c8bbafd (diff)
downloadguile-7a329029cf898fc0b9b24252c9bb437e1ad0b1d7.tar.gz
read: Support R7RS '#true' and '#false' syntax for booleans.
* libguile/read.c (try_read_ci_chars): New static function. (scm_read_boolean, scm_read_array): Use 'try_read_ci_chars'. * doc/ref/api-data.texi (Booleans): Update docs. * test-suite/tests/reader.test ("reading"): Add tests.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r--doc/ref/api-data.texi1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi
index fda76f1dc..198854bf1 100644
--- a/doc/ref/api-data.texi
+++ b/doc/ref/api-data.texi
@@ -56,6 +56,7 @@ For the documentation of such @dfn{compound} data types, see
@tpindex Booleans
The two boolean values are @code{#t} for true and @code{#f} for false.
+They can also be written as @code{#true} and @code{#false}, as per R7RS.
Boolean values are returned by predicate procedures, such as the general
equality predicates @code{eq?}, @code{eqv?} and @code{equal?}