slot ( obj m -- value )
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
objan object
ma non-negative fixnum
valuean object


Word description
Reads the object stored at 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