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. For a version of this page that may be more recent, see BoxesCowan in WG2's repo for R7RS-large.

Boxes­Cowan

cowan
2013-03-11 04:58:50
3history
source

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

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!