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
after
procedures, terminates the running program, and communicates an exit value to the operating system. If no argument is supplied, or ifobj
is#t
, theexit
procedure should communicate to the operating system that the program exited normally. Ifobj
is#f
, theexit
procedure should communicate to the operating system that the program exited abnormally. Otherwise,exit
should translateobj
into an appropriate exit value for the operating system, if possible.The
exit
procedure 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.