herkforth variables
herkforth's editor supports variables. To create one, type the name you
would like then the &
key. Variables are initially displayed in white
(comment color). To use it you will probably want to change it to green or
yellow.
Note that these are persistent variables -- their value is stored in the
herkforth dictionary and thus gets preserved when you save. For
non-persistent "variables", you can define a constant which points to data
on the heap. The word variable
exists to help with this.
In case it isn't obvious, you can set the value of a variable like so:
1) enter a value and press ENTER
2) enter the variable name and press ENTER
3) type ! and press ENTER