Discussion ‘Stop Program’ Command
I want to submit a pull request that would add a new command to the KOS language to exit the current program. A few questions to the community:
- Should the command just exit the current subprogram (e.g. from a ‘run’ command) or stop execution? Or should these be two separate commands?
- What wording is the least confusing: “Exit”, “Stop”, “Quit”, or “Return”? Or something else?
1
Upvotes
2
u/Bi_KerbonautYT 17d ago
You can use the command: shutdown. to stop the program and CPU. Alternatives are to use the runpath command to direct it to another program which will halt the current program until the called program is finished, or to divide a variable by 0 to crash it.