News for hackers. Stuff that matters.
Re:Implementing DOES> in Forth, the entire reason I started ... by alexisread on Tuesday June 10, 2025 @04:21AM (#44234058)
It implements defining words ie. Additional compiler words.

It does this by doing something now, and later (you could read create does> as now later>)

So for

: CONSTANT CREATE , >DOES @ ;

This makes the defining word CONSTANT, which when run (now) compiles the next word

So CONSTANT myvar will compile myvar. Myvar, when run (later) will get it's value and push it to the datastack.

There are no comments on this comment yet.