You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SP-Forth/4, not all standard words are included in the kernel. Some of them are provided in source code files in lib/include/ subdirectory (see also "ANS support" section of the manual in docs/intro.en.md). The word .S is provided in lib/include/tools.f, all the standard words (except locals) can be included via lib/include/ansi.f.
Formally, such approach is allowed by the standard, as the section "3 Usage requirements" says:
A system need not provide all words in executable form. The implementation may provide definitions, including definitions of words in the Core word set, in source form only. If so, the mechanism for adding the definitions to the dictionary is implementation defined.
Nevertheless, the next release plans to provide two binaries — one minimal and one extended with all the standard words and case insensitivity mode by default.
The .S word is defined in calc.f as:
This works nicely, I suggest it be made available 'out of the box', as it's convenient for interactive use.
The text was updated successfully, but these errors were encountered: