Handbook
Glossary
define-tuple-slots ( class -- )
Vocabulary
classes
.
tuple
.
private
Inputs
class
a
tuple-class
Outputs
None
Word description
Defines slot accessor and mutator words for the tuple.
Notes
Calling this word directly is not necessary in most cases. Higher-level words call it automatically.
Definition
USING:
classes
kernel
slots
words
;
IN:
classes.tuple.private
:
define-tuple-slots
( class -- )
dup
"slots"
word-prop
over
superclass-of
prepare-slots
define-accessors
;