Handbook
Glossary
<word> ( name vocab -- word )
Factor handbook
»
The language
»
Words
»
Word introspection
»
Uninterned words
Next:
<uninterned-word> ( name -- word )
Vocabulary
words
Inputs
name
a
string
vocab
a
string
Outputs
word
a
word
Word description
Allocates a word with the specified name and vocabulary. User code should call
<uninterned-word>
to create uninterned words and
create-word
to create interned words, instead of calling this constructor directly.
Notes
This word must be called from inside
with-compilation-unit
.
Definition
USING:
definitions
hashtables
kernel
math
words.private
;
IN:
words
:
<word>
( name vocab -- word )
over
hashcode
over
hashcode
hash-combine
>fixnum
(word)
dup
new-word
;