15.6.2.0830 BYE TOOLS EXT
( -- )
Return control to the host operating system, if any.
ContributeContributions
FrancoisLaagel
[440] BYE Semantics Needs ClarificationRequest for clarification2026-07-24 12:57:22
BYE is used by QUIT's reference implementation. The specification I can see on forth-standard.org says "return control to the host operating system, if any."
Under the latest SwiftForth implementation (x64-Linux 4.1.8), there is an operating system but upon a QUIT, control is simply returned to the interpreter. GForth 0.7.9 behaves in the same manner. So, as usual, we can fix the specification to match "common usage" or fix the implementations to match the specification.
In Z79Forth, 'BYE' causes a system reboot, which renders all the debate about what 'QUIT' should or should not do, rather academic.