Handbook
Glossary
define-struct-class ( class slots -- )
Vocabulary
classes
.
struct
Inputs
class
a
class
slots
a sequence of
struct-slot-spec
s
Outputs
None
Word description
Defines a new
struct
class. This is the runtime equivalent of the
STRUCT:
syntax.
Definition
USING:
classes.struct.private
slots
;
IN:
classes.struct
:
define-struct-class
( class slots -- )
make-slots
[
compute-struct-offsets
]
[
struct-alignment
]
(define-struct-class)
;