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

Prev:reader-word ( name -- word )
Next:setter-word ( name -- word )


Vocabulary
slots

Inputs
namean object


Outputs
wordan object


Definition


: writer-word ( name -- word )
"<<" append "accessors" create-word
dup t "writer" set-word-prop ;