Fix silly DEFER: error

db4
Slava Pestov 2008-05-28 19:43:01 -05:00
parent fb96fe25c1
commit 8bff6eba52
3 changed files with 4 additions and 2 deletions

View File

@ -485,3 +485,5 @@ must-fail-with
[ t ] [ "staging-problem-test-1" "parser.tests" lookup >boolean ] unit-test
[ t ] [ "staging-problem-test-2" "parser.tests" lookup >boolean ] unit-test
[ "DEFER: blah" eval ] [ error>> no-current-vocab? ] must-fail-with

View File

@ -236,7 +236,7 @@ PREDICATE: unexpected-eof < unexpected
ERROR: no-current-vocab ;
M: no-current-vocab summary ( obj -- )
drop "Current vocabulary is f, use IN:" ;
drop "Not in a vocabulary; IN: form required" ;
: current-vocab ( -- str )
in get [ no-current-vocab ] unless* ;

View File

@ -100,7 +100,7 @@ IN: bootstrap.syntax
] define-syntax
"DEFER:" [
scan in get create
scan current-vocab create
dup old-definitions get [ delete-at ] with each
set-word
] define-syntax