marker ( -- <name> )
published: 5 February 2023 / updated 5 February 2023
vocabulary: forth
As you develop an application, it will often be convenient to return to an earlier, intermediate dictionary and memory allocation state. This can be done with the word marker.
Later, after we have done some work with the FlashForth system and defined a few of our own words and variables, we can return the dictionary and memory allocation to the earlier state by executing the word -my-mark
. Here, we have arbitrarily chosen the word -my-mark
so it would be good to choose a word that has some specific and easily remembered meaning for us.
Example:
marker -my-mark