in gforth, when I want to see the inner of the word 2constant , I use the command
see 2constant
then the output is..
: 2Constant
Create 2, 140549207084808 (does>2) ;
I could not find so far a clear explanation after "2,". I am a beginner in forth and need to understand this, in order to migrate the word 2constant in a board, which forth has no 2constant word. Any hint is welcome.
If I didn't have
2CONSTANTdefined I'd define:In GFORTH:
Added following the comment
Testing
I can't make sense of the code in the comment. It almost does 2! but would overwrite the first value stored with the second. I can't see why the compilation state is relevant.
CREATE is required if 2CONSTANT is to define a new word and the DOES> action of the word is required to recover the stored values.