regExitBefore
regExitBefore(s_name) =>t
Description
Registers the action to be taken before the exit function is executed. If the function registered returns the ignoreExit symbol, the exit is aborted.
Arguments
|
Name of the function that is to be added to the head of the list of functions to be executed before the |
Value Returned
|
The function registered returns the |
Examples
procedure( foo() println( "Aborting exit") 'ignoreExit)
=> foo
regExitBefore('foo)
=> t
exit ;Does not exit.
"Aborting exit"
procedure( foo() println( "Exiting")) => foo exit ;Exits program.
"Exiting"
Related Topics
Return to top