Brad White wrote:
> We must be talking about different things.
I'm mostly trying to keep things technically accurate, which it hasn't been. It's hard to discuss the benefit of something when it is so thoroughly wrongly described.
> In C#, Dispose *will* get called if there is one.
That is wrong. Finalizers *will* get called, although they are very rarely used. Dispose won't, unless you call it (and sometimes don't need to be called, anyway*). using has nothing to do with a finalizer.
> The only thing that 'using' adds is making it > deterministic, which was impossible without 'using'.
That is also wrong. First, using adds more than determinism, and second because it's not impossible withoug using, as Rudy correctly pointed out.
-Craig
* For example, if you start a transaction and commit it in a finally, there is no need to Dispose it.
-- Craig Stuntz __ Vertex Systems Corp. __ Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz/