3 This directory includes an example program for extending Guile with a
4 new (and even useful) data type.
6 To build the example, simply type
12 The resulting `box' program is a Guile interpreter which has one
13 additional data type called `box'.
15 A box is simply an object for storing one other object in. It can be
16 used for passing parameters by reference, for example. You simply
17 store an object into a box, pass it to another procedure which can
18 store a new object into it and thus return a value via the box.
20 Box objects are created with `make-box', set with `box-set!' and
21 examined with `box-ref'. See the following example session for usage
25 guile> (define b (make-box))
28 guile> (box-set! b '(list of values))
30 #<box (list of values)>