Handbook
Glossary
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:
accessors
kernel
vocabs
;
IN:
vocabs.loader
:
reload
( name -- )
dup
lookup-vocab
[
f
>>source-loaded?
f
>>docs-loaded?
drop
]
when*
require
;