previous up next     contents index
Next: User Breaks Up: Additional Facilities Previous: Debug Info Handler

Exit Handlers

 

        An exit handler is invoked when MzScheme's exit procedure is called. An exit handler is a closure that takes one argument: the exit value passed to exit (or the default, 0).

The default exit handler takes any argument and shuts down MzScheme; if the argument is a fixnum integer, it is used as the exit code, otherwise the exit code it 0. (When MzScheme is used within another application, such as MrEd, the default exit handler may be remapped internally.)



PLT