Previous
Previous
 
Next
Next

Ways to Save and Restore Environments

The following suggestions let you save the environment of a program or a session:

Contexts are the most sophisticated way to save object values for use during a session. With contexts, you can access, update, and commit the saved object values. In contrast, PUSH and POP simply allow you to save and restore values. Typically, you use PUSH and POP statements within a program to make changes that apply only during the execution of the program.