set-slot ( value obj n -- )
Factor handbook » The language » Objects » Low-level slot operations

Prev:slot ( obj m -- value )


Vocabulary
slots.private

Inputs
valuean object
objan object
na non-negative fixnum


Outputs
None

Word description
Writes value to the n th slot of obj.

Warning
This word is in the slots.private vocabulary because it does not perform type or bounds checks, and slot numbers are implementation detail.


Definition