Brad White wrote:
> Rudy Velthuis (TeamB) submitted this idea : > > Brad White wrote: > > > >> IMHO, the C# 'using' was put in place to make > >> up for the lack in functionality that Delphi > >> already had. > > > > Such as? AFAICT, Delphi only has try-finally, which C# also has. > > The reason that we have to use 'using' in C# > is to make finalization deterministic.
It is meant to get rid of all resources beside memory. In Delphi, you do the same, but you must also take care of memory using try-finally.
-- Rudy Velthuis (TeamB) http://www.teamb.com
Correspondence Corollary: An experiment may be considered a success if no more than half of your data must be discarded to obtain correspondence with your theory.