vocabs.loader: add a word to clear the vocab-cache.

locals-and-roots
Doug Coleman 2016-06-26 17:12:39 -07:00
parent 71a6aa4c9b
commit ecd0bb350c
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ SYMBOL: add-vocab-root-hook
SYMBOL: root-cache
root-cache [ H{ } clone ] initialize
: clear-root-cache ( -- )
root-cache get clear-assoc ;
ERROR: not-found-in-roots path ;
PRIVATE<