USING:
Factor handbook » The language » Syntax » Parse-time word lookup » Syntax to control word lookup

Prev:USE:
Next:QUALIFIED:


Vocabulary
syntax

Syntax
USING: vocabularies... ;


Inputs
None

Outputs
None

Word description
Adds a list of vocabularies to the search path.

Notes
If adding the vocabulary introduces ambiguity, referencing the ambiguous names will throw an ambiguous-use-error. You can disambiguate the names by prefixing them with their vocabulary name and a colon: vocabulary:word.

Errors
Throws an error if one of the vocabularies does not exist.

Examples
The following two code snippets are equivalent.
USING: math prettyprint ; 1 2 + .
3

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


See also
USE:, QUALIFIED:

Definition