There is a vocabulary mechanism in Forth which makes it possible to have different actions for the same name -- it's like having a set of dictionaries. I actually tried this first. This mechanism is suitable if a new meaning is needed for a period of time (e.g., the assembler and editor in many systems are put in separate vocabularies). It is not convenient to frequently switch back and forth between vocabularies, so this proved to be an inconvenient solution.

Close this window