Local variables are a controversial subject in Forth - and before the ANS Forth standard was introduced, they were not even part of the language. But what if Chuck Moore had wanted to include local variables? How would he have approached the problem? We provide a possible solution - and then use the 4tH preprocessor to make a fully Forth 2012 compliant implementation.
Follow-up:
https://youtu.be/FH4tWf9vPrA
The preprocessor videos:
Part 1: https://youtu.be/OtZ3WHXuyN0
Part 2: https://youtu.be/400AqNsFefo
Part 3: https://youtu.be/i8HtlcsuKnE
Part 4: https://youtu.be/fqHD2I4JCZE
Part 5: https://youtu.be/l4a80FS-jcA
My Forth compiler can be found here:
https://sourceforge.net/projects/forth-4th/
You can download it anonymously and for FREE.
Most popular platforms are supported - even some old ones.