on-exit

Adds a function to be called just before quitting.

Arranges for the exit function to call the argument function.  The argument function must take no required arguments.  Users may call on-exit multiple times to install more than one function for exit to call, but the order in which exit invokes the functions is undefined.  Calling on-exit on the same function repeatedly installs that function multiple times.

Exported from

Arguments

functionAn instance of <function>.  A function to execute before quitting.
Causes the application to quit with a return code of exit-code.
Adds a function to be called just before quitting.
Ultimately, there will be several, more logically separate libraries that extend Dylan or provide an application framework for users.
The common-dylan module.
Miscellaneous extensions to the Dylan language.
The operating-system module contains functions for dealing with environment variables, the current user, and processes.
The class of objects that can be applied to arguments.