word
Factor handbook » The language » Words » Word introspection

Next:word? ( object -- ? )


Vocabulary
words

Class description
The class of words. One notable subclass is class, the class of class words.

Definition


BUILTIN: word
{ hashcode fixnum initial: 0 } name vocabulary
{ def quotation initial: [ ] } props pic-def pic-tail-def
{ sub-primitive read-only } ;


Methods

























M: word (reset)
dup "unannotated-def" word-prop
[ dupd define "unannotated-def" remove-word-prop ] [ drop ]
if* ;














































































































































































M: word no-compile?
{
[ macro? ]
[ "special" word-prop ]
[ "no-compile" word-prop ]
} 1|| ;




























































M: word reset-word
dup flushable? [ dup changed-conditionally ] when {
"unannotated-def"
"parsing"
"inline"
"recursive"
"foldable"
"flushable"
"reading"
"writing"
"reader"
"writer"
"delimiter"
"deprecated"
} remove-word-props ;