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.

This word is deprecated
This word is deprecated since Factor words can now be used as qualified by default. QUALIFIED-WITH: can be used for changing the qualification prefix.


Notes
If adding a 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