define-slot-methods ( class slot-spec -- )
Factor handbook » The language » Objects » Low-level slot operations

Prev:define-changer ( name -- )
Next:define-accessors ( class specs -- )


Vocabulary
slots

Inputs
classa class
slot-speca slot-spec


Outputs
None

Word description
Defines a reader, writer, setter and changer for a slot specified by slot-spec.

Notes
Calling this word directly is not necessary in most cases. Higher-level words call it automatically.

Definition