Moritz Beutel wrote:
> > I wonder whether is is possible to implement something similar in > > newer delphi versions in order to avoid aforementioned ubiquitous > > nested try/finally boredom? > > With Delphi's generics it's possible to build some kind of equivalent > for std::auto_ptr<>.
A simpler version was already possible using interfaces without generics.
Alernatively, using anonymous methods (and generics) you can implement something like C#'s "using()" construct. -- Rudy Velthuis (TeamB) http://www.teamb.com
"A poem is never finished, only abandoned." -- Paul Valery (1871-1945)