Fix a bug in CONSTANT: -- it wasn't calling reset-word

db4
Slava Pestov 2009-03-29 22:46:27 -05:00
parent a40b4f6dfa
commit 5a903d7bcd
2 changed files with 7 additions and 1 deletions

View File

@ -138,7 +138,7 @@ IN: bootstrap.syntax
] define-core-syntax
"CONSTANT:" [
CREATE scan-object define-constant
CREATE-WORD scan-object define-constant
] define-core-syntax
":" [

View File

@ -0,0 +1,6 @@
USING: math eval tools.test effects ;
IN: words.alias.tests
ALIAS: foo +
[ ] [ "IN: words.alias.tests CONSTANT: foo 5" eval ] unit-test
[ (( -- value )) ] [ \ foo stack-effect ] unit-test