Nick Hodges wrote:
> Vladimir Ulchenko wrote: > > > On Wed, 27 Jan 2010 11:40:46 -0800, Rudy Velthuis (TeamB) > > <✉rvelthuis.de> wrote: > > > > > 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. > > > > will you please show your alternatives? > > Allen Bauer did it here: > > > http://blogs.embarcadero.com/abauer/2008/09/25/38870
Ah, thanks! I knew I had seen an implementation, but didn't remember where. <g>
-- Rudy Velthuis (TeamB) http://www.teamb.com
"Rules of Optimization: Rule 1: Don't do it. Rule 2 (for experts only): Don't do it yet." -- M.A. Jackson