Revert "Add indirection to key and emit"

This reverts commit ca9bf42a26.
This commit is contained in:
Koichi Nakamura 2021-01-09 19:36:56 +09:00
parent da4f8f1ff8
commit 8d7a344064

View file

@ -433,6 +433,8 @@ alias-builtin bye Q
alias-builtin cell C
alias-builtin &here h
alias-builtin &latest l
alias-builtin key k
alias-builtin emit t
alias-builtin branch j
alias-builtin 0branch J
alias-builtin execute x
@ -452,21 +454,6 @@ alias-builtin and &
alias-builtin or |
alias-builtin xor ^
\ One-step indirection for key and emit. Since k and t are
\ temporary implementations, we will allow them to be replaced later.
&here @ # cell + &here !
: key-func [ ' L , , ] ;
' k key-func !
: key key-func @ execute ;
&here @ # cell + &here !
: emit-func [ ' L , , ] ;
' t emit-func !
: emit emit-func @ execute ;
\ Rename existing FORTH words
: word W ;
: find F ;