Brad White wrote:
> This Delphi can do with interfaces and C# can't without > using the 'using' clause.
Again, it's not really a good analogy, since you *must* clean up 95% of what you allocate in Delphi (exceptions being things like interfaces and ownership) and you don't need to do that for 95% of what you write in C# (exceptions being things like file handles and DB transactions).
Really, it's just different there. C# "can't do" what it largely doesn't need to do.
The Delphi user's argument has always been that programmers know better, but the current raging debate about the most basic aspects of memory management (the whole FreeAndNil jihad) makes me wonder about that. :)
-- Craig Stuntz __ Vertex Systems Corp. __ Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz/