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

Prev:define-reader ( class slot-spec -- )
Next:define-setter ( name -- )


Vocabulary
slots

Inputs
classa class
slot-speca slot-spec


Outputs
None

Word description
Defines a generic word writer to write a new value to a slot specified by slot-spec.

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

Definition