Be a Forth DOER/MAKEr
2008-09-13 / 12:09 / dave
When I first looked at Forth I thought “neat, but where’s the virtual?” or how can old code call new code. Turns out that Leo Brodie’s Thinking in Forth has the answer: DOER/MAKE. Basically DOER creates a placeholder word and MAKE rebinds the definition. All via the magic of the explicitly controlled return stack.
Unfortunately this has the same drawback as C++’s virtual: dynamic code has to be explicitly declared.
In other Forth news
Looks like there’s a freeware version of VFX Forth available. Link via this Dr. Dobb’s article on Modern Forth.
