This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.
Source for wiki BoxesCowan version 3
author
cowan
comment
ipnr
173.13.139.236
name
BoxesCowan
readonly
0
text
== Boxes ==
This is a trivial module, providing objects with a single mutable state. Several Schemes have something like it, sometimes called ''cells''. Boxes are a disjoint type.
== Procedures ==
* `box`: constructor
* `box?`: predicate
* `unbox`: accessor
* `set-box!`: mutator
== Existing implementations ==
||Proposed||Racket||Gambit||Chicken||SISC||Chez||MIT||Scheme48||
||box||box||box||make-box||box||box||make-cell||make-cell||
||box?||box?||box?||box-mutable?||box?||box?||cell?||cell?||
||unbox||unbox||unbox||box-ref||unbox||unbox||cell-contents||cell-ref||
||set-box{{{!}}}||set-box{{{!}}}||set-box{{{!}}}||box-set{{{!}}}||set-box{{{!}}}||set-box{{{!}}}||set-cell-contents{{{!}}}||cell-set{{{!}}}||
time
2013-03-11 04:58:50
version
3