Next: Word list example, Previous: Vocabularies, Up: Word Lists [Contents][Index]
Here are some reasons why people use wordlists:
CODE
word is defined).
forth-wordlist
or some other common wordlist) and a set
of helper words used just for the implementation (hidden in a separate
wordlist). This keeps words
’ output smaller, separates
implementation and interface, and reduces the chance of name conflicts
within the common wordlist.
IF
that generates conditional code for your target system. By
placing this definition in a different word list you can control whether
the host system’s IF
or the target system’s IF
get used in
any particular context by controlling the order of the word lists on the
search order stack.
The downsides of using wordlists are:
see
can
help seeing which of several possible words the name resolves to in such
cases). See
displays just the name of the words, not what
wordlist they belong to, so it might be misleading. Using unique names
is a better approach to avoid name conflicts.
Next: Word list example, Previous: Vocabularies, Up: Word Lists [Contents][Index]