Menu

ENDOT word?

SJR
2023-04-12
2023-04-12
  • SJR

    SJR - 2023-04-12

    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?

     
  • Mikael Nordman

    Mikael Nordman - 2023-04-12

    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

    words end <enter>
    

    lists all words containing 'end'.

    RDROP EXIT can be used to exit a word from inside a FOR NEXT loop.

     
  • SJR

    SJR - 2023-04-12

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.