On Fri, 29 Jan 2010 05:02:04 -0800, Jens M?hlenhoff <✉accurata.com> wrote:
>In the simplest case it'd look something like this: > >DisableEnableControls(SomeDataSet, procedure >begin > // Your code here >end);
perhaps that code will look even more ugly than original nested try/finally's when one needs to acquire/release several resources
if it's really minimal possible code to get needed functionality then I guess it's impossible to achieve what I want in current delphi (without borrowing from cpp macros and automatic variables)
-- Vladimir Ulchenko aka vavan