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

Prev:slot ( obj m -- value )


Vocabulary
slots.private

Inputs and outputs
valuean object
objan object
na non-negative fixnum


Word description
Writes value to the nth 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