reader-word ( name -- word )
Factor handbook » The language » Objects » Low-level slot operations

Prev:slot-spec
Next:writer-word ( name -- word )


Vocabulary
slots

Inputs
namean object


Outputs
wordan object


Definition


: reader-word ( name -- word )
">>" append "accessors" create-word
dup t "reader" set-word-prop ;