>I personally do not see very big advantages in having the class for such cases. Those 3 lines are clear and self-sufficient. You will replace them with two lines. What's the big deal? :)Self clean up when they go out of scope. So you don't forget to do it yourself.
The same can be done with classes that maintain and restore old state for other settings like:
SET DELETED ON|OFF
CURDIR | CD | SET DEFAULT
SET ORDER TO
Current ALIAS()
...
and anything else you can think of that you change in some methods and must restore/clean up upon exit from the method.