Feat: continue to improve documentation

This commit is contained in:
2026-02-17 00:51:56 +01:00
parent 524e686b3a
commit 8fcc0f4e54
9 changed files with 175 additions and 179 deletions

View File

@@ -58,6 +58,19 @@ You can even redefine numbers:
Now `2` pushes `4` onto the stack. The number two no longer exists in your session. This is a classic Forth demonstration: nothing is sacred, everything can be redefined.
## Removing Words
`forget` removes a user-defined word from the dictionary:
```forth
: double dup + ;
3 double ;; 6
"double" forget
3 double ;; error: unknown word
```
This only affects words you defined with `:` ... `;`. Built-in words cannot be forgotten.
## Practical Uses
**Synth definitions** save you from repeating sound design: