Use TFPEnvironmentSaveAndUpdate when you want to pass flag information out of a block. Its constructor behaves like TFPEnvironmentScope's.
Its destructor, rather than simply restoring the saved environment, merges the saved environment with the current environment in this sequence:
- Saves the environment current at the end of the block in a temporary inactive environment.
- Restores the saved environment as the current environment.
- Raises any flags set in the inactive environment saved in step 1.
This facilitates passing exception flags out of a block in a controlled way.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker