VocabularysyntaxSyntaxFROM: vocab => words ... ;
Word descriptionAdds
words from
vocab to the search path.
NotesIf adding the words introduces ambiguity, the words will take precedence when resolving any ambiguous names.
ExamplesBoth the
vocabs.parser and
binary-search vocabularies define a word named
search. The following will throw an
ambiguous-use-error:
USING: vocabs.parser binary-search ;
... search ...
Because
FROM: takes precedence over a
USING:, the ambiguity can be resolved explicitly. Suppose you wanted the
binary-search vocabulary's
search word:
USING: vocabs.parser binary-search ;
FROM: binary-search => search ;
... search ...
Definition