Word introspection
Factor handbook » The language » Words

Prev:Compiler declarations
Next:Word properties


Word introspection facilities and implementation details are found in the words vocabulary.

Word objects contain several slots:
namea word name
vocabularya word vocabulary name
defa definition quotation
propsan assoc of word properties, including documentation and other metadata

Words are instances of a class.
word

word? ( object -- ? )


Words implement the definition protocol; see Definitions.
Looking up and creating words
Uninterned words
Word properties
Word implementation details