Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
>
The Macaulay2 language
>
system facilities
>
addEndFunction
next
|
previous
|
forward
|
backward
|
up
|
index
|
toc
addEndFunction -- add an ending function
Synopsis
Usage:
addEndFunction f
Inputs:
f
,
a
function
Consequences:
When the program is about the exit, the function
f
will be called, with no arguments.
For the programmer
The object
addEndFunction
is
a
function closure
.