next
|
previous
|
forward
|
backward
|
up
|
top
|
index
|
toc
|
Macaulay2 website
Macaulay2Doc
>
The Macaulay2 language
>
system facilities
>
addEndFunction
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.
See also
addStartFunction
-- add a startup function
For the programmer
The object
addEndFunction
is
a
function closure
.