contents   index   previous   next


The SE.AT_EXIT object contains a number of members who are themselves functions, wrapper or script. These functions should take no parameters. All of the function members are invoked when the current seEval with the flag SE.EXIT_LEVEL completes. The this object for these functions will be the SE.AT_EXIT object they are a part of.


Members of the SE.AT_EXIT object that are not functions are ignored. However, they can be used to store information retrieved by an at-exit function through its SE.THIS object.


The sePutWrapper API function is useful for creating functions as members of the SE.AT_EXIT object to then be called.


You should choose member names for your at-exit functions that are unique and unlikely to be duplicated. Using short, common member names runs the risk of overwriting another at-exit function or its associated data members.