Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
slot ( obj m -- value )
Factor documentation
>
Factor handbook
>
The language
>
Objects
>
Low-level slot operations
Prev:
define-accessors ( class specs -- )
Next:
set-slot ( value obj n -- )
Vocabulary
slots.private
Inputs and outputs
obj
an
object
m
a non-negative fixnum
value
an
object
Word description
Reads the object stored at 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:
slot
( obj m -- value )
flushable