News for hackers. Stuff that matters.
Re:Easy Forth by kragen on Monday September 22, 2025 @03:29PM (#45338330)
Forth control structures don't work in interpret state because control structures involve executing code out of order: jumping from the end of a loop back to its beginning, etc. In interpret state there's nowhere to jump to. So you have to put control structures inside a colon definition for them to work. Also true of strings in traditional Forths, but GForth just dynamically allocates some memory and leaks it instead.

There are no comments on this comment yet.