Changeset 39530 in project
- Timestamp:
- 01/26/21 14:18:07 (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/5/defstruct
r35627 r39530 24 24 or a list of the form {{(NAME INIT)}} where {{INIT}} is the default 25 25 value of the slot (the {{INIT}} expression will only be evaluated when 26 no value is given in the constructor procedure). The {{defstruct}} 27 macro expands into predicate and accessor functions (just like the 28 native {{define-record}}): 26 no value is given in the constructor procedure. It defaults to {{#f}} 27 when none is provided). 28 29 The {{defstruct}} macro expands into predicate and accessor functions 30 (just like the native {{define-record}}): 29 31 30 32 <enscript highlight="scheme"> … … 49 51 => ; a point with x = 99 and y = 42 50 52 </enscript> 53 54 If keywords for some slots are missing, their initialization values 55 default to those supplied in the {{defstruct}} call, or else {{#f}}. 51 56 52 57 There are also two procedures {{update-STRUCTNAME}} and
Note: See TracChangeset
for help on using the changeset viewer.