Handbook
Glossary
set-word-prop ( word value name -- )
Factor handbook
»
The language
»
Words
»
Word properties
Prev:
word-prop ( word name -- value )
Vocabulary
words
Inputs
word
a
word
value
a property value
name
a property name
Outputs
None
Word description
Stores a word property. Word property names are conventionally strings.
Side effects
Modifies
word
Definition
USING:
accessors
hashtables
kernel
;
IN:
words
:
set-word-prop
( word value name -- )
over
[
pick
props>>
?set-at
>>props
drop
]
[
nip
remove-word-prop
]
if
;