larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
423 stars 113 forks source link

do ... +loop with negative increment doesn't loop #77

Open vonbrand opened 6 years ago

vonbrand commented 6 years ago

\ do ... +loop doesn't loop

: tst-do ( --) 0 9 do i . -1 +loop ;

\ prints 9, not 9 8 ... 0

larsbrinkhoff commented 5 years ago

Hello,

I'm sorry, I didn't see this issue until right now.

As you have correctly noted, lbForth does have bugs and quirks. However, it's mainly a vehicle for personal experiments and may not be suitable for public consumption. Caveat emptor. I'm not actively developing it now, though that may change some time in the future.