Handbook
Glossary
define-packed-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
PACKED-STRUCT:
syntax.
Definition
USING:
classes.struct.private
kernel
;
IN:
classes.struct
:
define-packed-struct-class
( class slots -- )
make-packed-slots
[
compute-struct-offsets
]
[
drop
1
]
(define-struct-class)
;