effects.parser: Fix word -> current-word for definition errors.
parent
6e2291886d
commit
bd3762502f
|
@ -57,7 +57,7 @@ SYMBOL: in-definition
|
||||||
ERROR: can't-nest-definitions word ;
|
ERROR: can't-nest-definitions word ;
|
||||||
|
|
||||||
: check-in-definition ( -- )
|
: 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 -- )
|
: with-definition ( quot -- )
|
||||||
[ check-in-definition t in-definition ] dip with-variable ; inline
|
[ check-in-definition t in-definition ] dip with-variable ; inline
|
||||||
|
|
Loading…
Reference in New Issue