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

Prev:slot-named ( name specs -- spec/f )
Next:define-writer ( class slot-spec -- )


Vocabulary
slots

Inputs
classa class
slot-speca slot-spec


Outputs
None

Word description
Defines a reader word to read a slot specified by slot-spec.

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

Definition