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
objan object
ma non-negative fixnum


Outputs
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