What follows is a snippet from an email sent to me by a friend who is
a C++ programmer.
***
>In C++, you create an object that sets a new process priority when
>it's created and resets back the priority
>when the object is destroyed.
>And the object automatically gets destroyed when it goes out of
>scope, i.e. when the functions were it's
>created returns.
>Regardless how may return paths there are, you never have to
>remember to restore the process priority,
>the destruction of the object takes care of that.
>
>I use this technique a lot, you might know about it - it's called
>RAII (Resource Acquisition Is Initiallization)
***
Sounds very useful. Do we have an analogous construct in Delphi?
-Paul
[Non-text portions of this message have been removed]