Handbook
Glossary
factorcode.org
reload ( name -- )
Factor handbook
»
The language
»
Vocabulary loader
Prev:
require-when ( if then -- )
Next:
MAIN:
Vocabulary
vocabs.loader
Inputs
name
a vocabulary name
Outputs
None
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
;