]> gitweb.factorcode.org Git - factor.git/commitdiff
effects.parser: Fix word -> current-word for definition errors.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 14 Apr 2013 20:32:15 +0000 (13:32 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 14 Apr 2013 20:32:15 +0000 (13:32 -0700)
core/effects/parser/parser.factor

index b25dcbd27c737506e0f675a25be76e73479cef89..746e512d555c56428134119145055a5c72a6ed19 100644 (file)
@@ -57,7 +57,7 @@ SYMBOL: in-definition
 ERROR: can't-nest-definitions word ;
 
 : check-in-definition ( -- )
-    in-definition get [ word can't-nest-definitions ] when ;
+    in-definition get [ current-word can't-nest-definitions ] when ;
 
 : with-definition ( quot -- )
     [ check-in-definition t in-definition ] dip with-variable ; inline