reload ( name -- )
Factor documentation > Factor handbook > The language > Vocabulary loader
Prev:require-when ( if then -- )
Next:MAIN:


Vocabulary
vocabs.loader

Inputs and outputs
namea vocabulary name


Word description
Reloads the source code and documentation for a vocabulary.

Errors
Throws a no-vocab error if the vocabulary does not exist on disk.

Definition
USING: kernel vocabs vocabs.loader.private ;

IN: vocabs.loader

: reload ( name -- )
dup lookup-vocab
[ [ load-source ] [ load-docs ] bi ] [ require ] ?if ;