]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs: in create-vocab, notify-vocab-observers after updating dictionary.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Nov 2016 00:38:27 +0000 (16:38 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Nov 2016 00:38:27 +0000 (16:38 -0800)
core/vocabs/vocabs.factor

index b47053071fe236c080e9959604ec6de8b913da4a..656f040c75bf42861b7e292ae8fe1558114bec6f 100644 (file)
@@ -85,8 +85,8 @@ GENERIC: vocab-changed ( vocab obj -- )
     vocab-observers get [ vocab-changed ] with each ;
 
 : create-vocab ( name -- vocab )
-    check-vocab-name dictionary get
-    [ <vocab> dup notify-vocab-observers ] cache ;
+    check-vocab-name dictionary get [ <vocab> ] cache
+    dup notify-vocab-observers ;
 
 ERROR: no-vocab name ;