Changeset 13467 in project
- Timestamp:
- 03/03/09 18:57:45 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/box
r13462 r13467 23 23 === make-box 24 24 25 <procedure>(make-box OBJECT [#:immutable #f]) => BOX</procedure>25 <procedure>(make-box OBJECT [#:immutable? #f]) => BOX</procedure> 26 26 27 27 Returns a {{BOX}} with initial value {{OBJECT}}. 28 28 29 The {{BOX}} is mutable unless the {{immutable }} keyword argument is {{#t}}.29 The {{BOX}} is mutable unless the {{immutable?}} keyword argument is {{#t}}. 30 30 An attempt to mutate the boxed value will signal an exception. 31 31 32 32 === make-box-variable 33 33 34 <procedure>(make-box-variable VARIABLE [#:immutable #f]) => BOX</procedure>34 <procedure>(make-box-variable VARIABLE [#:immutable? #f]) => BOX</procedure> 35 35 36 36 Returns a boxed reference to the {{VARIABLE}}, which must be in lexical-scope. 37 37 38 The {{BOX}} is mutable unless the {{immutable }} keyword argument is {{#t}}.38 The {{BOX}} is mutable unless the {{immutable?}} keyword argument is {{#t}}. 39 39 40 40 === make-box-location 41 41 42 <procedure>(make-box-location TYPE INITIAL-VALUE [#:immutable #f]) => BOX</procedure>42 <procedure>(make-box-location TYPE INITIAL-VALUE [#:immutable? #f]) => BOX</procedure> 43 43 44 44 Returns a boxed reference to a location of {{TYPE}} and {{INITIAL-VALUE}}. 45 45 46 The {{BOX}} is mutable unless the {{immutable }} keyword argument is {{#t}}.46 The {{BOX}} is mutable unless the {{immutable?}} keyword argument is {{#t}}. 47 47 48 48 Unavailable in EVALuated source. … … 93 93 === box-location 94 94 95 <procedure>(box-location BOX ) => LOCATION</procedure>95 <procedure>(box-location BOX [#:weak? #f]) => LOCATION</procedure> 96 96 97 97 Returns a {{LOCATION}} object for a boxed variable, location or locatable box. 98 98 Signals an exception otherwise. 99 100 The locative is "strong" unless the {{weak?}} keyword argument is {{#t}}. The 101 {{weak?}} keyword argument is ignored for boxed variables and locations. 99 102 100 103 The location of a boxed value or boxed location is the box. The location of a boxed
Note: See TracChangeset
for help on using the changeset viewer.