4146110e0d
It's a quite useful word and it doesn't make sense to reload it from disk after each usage.
15 lines
362 B
Plaintext
15 lines
362 B
Plaintext
: WORD(
|
|
DUP 1- C@ ( name len field )
|
|
127 AND ( 0x7f. remove IMMEDIATE flag )
|
|
3 + ( fixed header len )
|
|
-
|
|
;
|
|
: FORGET
|
|
' DUP ( w w )
|
|
( HERE must be at the end of prev's word, that is, at the
|
|
beginning of w. )
|
|
WORD( HERE ! ( w )
|
|
PREV CURRENT !
|
|
;
|
|
: EMPTY LIT< _sys FIND IF DUP HERE ! CURRENT ! THEN ;
|