[previous] [up] [next]     [index]
Next: Input Parsing Up: Support Facilities Previous: Eval and Load

Exiting

(exit [v]) passes v on to the current exit handler (see exit-handler in section 9.4.1.12). The default value for v is #t. If the exit handler does not escape or terminate the thread, void is returned.

The default exit handler quits MzScheme (or MrEd), using its argument as the exit code if it is between 1 and 255 inclusive (meaning ``failure''), or 0 (meaning ``success'') otherwise.

When MzScheme is embedded within another application, the default exit handler may behave differently.



PLT