QUALIFIED:
Factor handbook > The language > Syntax > Parse-time word lookup > Syntax to control word lookup

Prev:USING:
Next:QUALIFIED-WITH:


Vocabulary
syntax

Syntax
QUALIFIED: vocab


Word description
Adds the vocabulary's words, prefixed with the vocabulary name, to the search path.

Notes
If adding the vocabulary introduces ambiguity, the vocabulary will take precedence when resolving any ambiguous names. This is a rare case; for example, suppose a vocabulary fish defines a word named go:fishing, and a vocabulary named go defines a word named fishing. Then, the following will call the latter word:
USE: fish QUALIFIED: go go:fishing


Examples
USING: prettyprint ; QUALIFIED: math 1 2 math:+ .
3


Definition