summaryrefslogtreecommitdiff
path: root/doc/ref/srfi-modules.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-02-07 15:05:55 +0100
committerAndy Wingo <wingo@pobox.com>2014-02-07 15:05:55 +0100
commitae7f13be4bda70a6bc4a8478ce043df1a752ee6e (patch)
tree4d68cbc18989374bdbf33b8d46fa56b6f8164998 /doc/ref/srfi-modules.texi
parentdc7a33fa871c42d0474602f3560d3ce350e1f1c3 (diff)
parentca5e0414e96886177d883a249edd957d2331db65 (diff)
downloadguile-ae7f13be4bda70a6bc4a8478ce043df1a752ee6e.tar.gz
Merge commit 'ca5e0414e96886177d883a249edd957d2331db65'
Conflicts: module/language/tree-il/primitives.scm
Diffstat (limited to 'doc/ref/srfi-modules.texi')
-rw-r--r--doc/ref/srfi-modules.texi25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index 84cc164f0..726f5c0c5 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -59,6 +59,7 @@ get the relevant SRFI documents from the SRFI home page
* SRFI-88:: Keyword objects.
* SRFI-98:: Accessing environment variables.
* SRFI-105:: Curly-infix expressions.
+* SRFI-111:: Boxes.
@end menu
@@ -5174,6 +5175,30 @@ directive @code{#!curly-infix-and-bracket-lists}. For example:
For more information on reader options, @xref{Scheme Read}.
+@node SRFI-111
+@subsection SRFI-111 Boxes.
+@cindex SRFI-111
+
+@uref{http://srfi.schemers.org/srfi-111/srfi-111.html, SRFI-111}
+provides boxes: objects with a single mutable cell.
+
+@deffn {Scheme Procedure} box value
+Return a newly allocated box whose contents is initialized to
+@var{value}.
+@end deffn
+
+@deffn {Scheme Procedure} box? obj
+Return true if @var{obj} is a box, otherwise return false.
+@end deffn
+
+@deffn {Scheme Procedure} unbox box
+Return the current contents of @var{box}.
+@end deffn
+
+@deffn {Scheme Procedure} set-box! box value
+Set the contents of @var{box} to @var{value}.
+@end deffn
+
@c srfi-modules.texi ends here
@c Local Variables: