I've seen the ENDOT word mentioned several times in the guide (where describing for/next) yet it doesn't seem to actually exist in an installed FlashForth. I'm using FF on the Scamp 3 and ENDOT doesn't exist, nor can I find any trace of it grepping through the git repository. Are we just meant to use RDROP EXIT?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ugh, sorry, this is embarrasing. No, endit hasn't been changed on the Scamp. I have a text replacement plugin I've been testing in my browser. It was replacing "dit" with "dot" so in all the documentation I saw "endot", not "endit". When I just ran "words end" on the Scamp as you suggested, the word "endit" came up and when I started typing my reply here I saw that it replaced the string "dit" with "dot" when I typed it, tipping me off to what was going on. So sorry for the confusion!! Feel free to delete my post if possible. Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I've seen the ENDOT word mentioned several times in the guide (where describing for/next) yet it doesn't seem to actually exist in an installed FlashForth. I'm using FF on the Scamp 3 and ENDOT doesn't exist, nor can I find any trace of it grepping through the git repository. Are we just meant to use RDROP EXIT?
ENDOT???
I don't have a SCAMP, but ENDIT can be used to terminate a FOR..NEXT loop.
Has John Catsoulis changed ENDIT ?
The command
lists all words containing 'end'.
RDROP EXIT can be used to exit a word from inside a FOR NEXT loop.
Ugh, sorry, this is embarrasing. No, endit hasn't been changed on the Scamp. I have a text replacement plugin I've been testing in my browser. It was replacing "dit" with "dot" so in all the documentation I saw "endot", not "endit". When I just ran "words end" on the Scamp as you suggested, the word "endit" came up and when I started typing my reply here I saw that it replaced the string "dit" with "dot" when I typed it, tipping me off to what was going on. So sorry for the confusion!! Feel free to delete my post if possible. Thanks!