Most languages don't allow redefining a function, but some do support function pointers. Forth also has something like a function pointer using the words DEFER and IS. Tachyon appears to have a similar thing through the use of a vector table. So what was the question?
Quite so. Of course if you do that you do get the function redefined in the way were expecting Forth to do.
Actually, I knew that Forth traditionally doesn't update previous references to words that are redefined. I just thought I remembered that Tachyon was different and my question was about how Tachyon handles redefinition. As it turns out, it follows typical Forth behavior closely and I remembered incorrectly.
I...said that for me Forth works really well in a certain class of embedded controllers, not too small, not too big, and in fact hardly ever on a PC which is where most people are familiar with Forth and yet one I avoid because we have such glorious almost interactive IDEs in different language flavours, and in that environment I am really quite happy to program in something other than Forth.
FWIW, this is exactly how I feel about the matter. I made such a declaration on a different forum a while back and caught some flak from folks who have never used Forth on anything other than a PC. Even with the RPi, there is simply no rational reason to use Forth. gcc and Python are already onboard and work wonderfully well. OTOH, in fast but memory-limited microcontrollers Forth can be amazingly efficient and productive (and fun!).
Anyway, this thread was not supposed to be about whether Forth or Tachyon are better or worse than other alternatives on the Propeller. It was just about helping me to understand how Tachyon implements its interactive development environment. The answer has been supplied so I guess the thread should be closed. Language wars can go elsewhere. :-)
Comments
FWIW, this is exactly how I feel about the matter. I made such a declaration on a different forum a while back and caught some flak from folks who have never used Forth on anything other than a PC. Even with the RPi, there is simply no rational reason to use Forth. gcc and Python are already onboard and work wonderfully well. OTOH, in fast but memory-limited microcontrollers Forth can be amazingly efficient and productive (and fun!).