Vocabulary
syntax

Syntax
USE: vocabulary


Inputs
None

Outputs
None

Word description
Adds a new vocabulary to the search path, loading it first if necessary.

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 the vocabulary does not exist or could not be loaded.

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

USE: math USE: prettyprint 1 2 math:+ prettyprint:.
3


See also
USING:, QUALIFIED:

Definition