exit -- r7rs Definition procedure;
Procedure variants:
(() -> (halt))
halt;((true) -> (halt))
((false) -> (halt))
((any) -> (halt))
scheme:process-context -- (scheme process-context);scheme -- (scheme);(exit) (exit obj)Runs all outstanding dynamic-wind
afterprocedures, terminates the running program, and communicates an exit value to the operating system. If no argument is supplied, or ifobjis#t, theexitprocedure should communicate to the operating system that the program exited normally. Ifobjis#f, theexitprocedure should communicate to the operating system that the program exited abnormally. Otherwise,exitshould translateobjinto an appropriate exit value for the operating system, if possible.The
exitprocedure must not signal an exception or return to its continuation.Note: Because of the requirement to run handlers, this procedure is not just the operating system's exit procedure.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.