Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
set-slot ( value obj n -- )
Factor documentation
>
Factor handbook
>
The language
>
Objects
>
Low-level slot operations
Prev:
slot ( obj m -- value )
Vocabulary
slots.private
Inputs and outputs
value
an
object
obj
an
object
n
a non-negative fixnum
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
IN:
slots.private
PRIMITIVE:
set-slot
( value obj n -- )