On Thu, 28 Jan 2010 04:47:55 -0800, Rudy Velthuis (TeamB) <✉rvelthuis.de> wrote:
>The simpler version was integrated in the JCL (not sure how they call >the classes now, I called them guard interfaces).
I wonder how delphi counterpart to one of my one-liners (say BEGIN_END_UPDATE) could be implemented using JCL ISafeGuard? in addition I'd like to avoid declaring any guard variables manually (one of the things I dislike very much in delphi) I'd like to see ready for use example I could borrow to replace numerous try/finally in my delphi-based projects with something as expressive as my bcb macros (no nesting of resource release code needed)
>I'll try to find an example of the Using() procedure.
thank you
-- Vladimir Ulchenko aka vavan