Search code examples
forthgforth

Executing a char or string in Forth as though it was a word


Let's say I have s" Hello" stored somewhere. and I've also defined : Hello something ;. Is there a way to execute the string as though it was the word?

I've read the documentation, but I cannot find any relevant functionality. It might be obvious, but alas I cannot work it out.


Solution

  • This works on my system.

    s" Hello" EVALUATE