Hi David!
Thanks for using 4tH. Actually, your question is in the FAQ.
QUESTION: When I open up the editor in 4tH, it takes most 4tH code like
an actual
Forth compiler, but not my colon definitions. Why?
ANSWER: The 4tH editor mimics Forth, that’s true. But it is actually a
Forth like
environment on top of 4tH. It may seem like you’re working on a Forth
prompt, but you’re not. You can use the editor only for editing or some
quick calculations, but if you want to use the full capability of 4tH,
you’re
stuck to the menu.
In other words, the editor does a good job of faking it is an
interactive Forth - but it isn't. It's just an editor with some
calculation capabilities. There is not even remotely such a thing as a
compiler there. The point is, unlike other Forths, 4tH compiles straight
away to an image. 4tH doesn't have a dictionary. When compiling it
builds a symboltable that is thrown away right after (although in the
upcoming version 3.63, it can be kept for a limited number of purposes).
I know it's hard to wrap your head around if you know other Forths, but
may be this page helps:
https://sourceforge.net/p/forth-4th/wiki/Short%20review/
Hans Bezemer