Add word "DELW"

This commit is contained in:
Virgil Dupras 2020-04-08 20:40:23 -04:00
parent 2a2e3a64a4
commit b5638d142a
2 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,8 @@ CREATE x -- Create cell named x. Doesn't allocate a PF.
words are *not* executed.
COMPILE x -- Meta compiles. Kind of blows the mind. See below.
CONSTANT x n -- Creates cell x that when called pushes its value
DELW x -- Delete word x. If it shadows another definition,
that definition is unshadowed.
DOES> -- See description at top of file
IMMED? a -- f Checks whether wordref at a is immediate.
IMMEDIATE -- Flag the latest defined word as immediate.

View File

@ -132,3 +132,7 @@
LOOP
2DROP
;
: DELW
' 1 - 0 SWAP C!
;