Originally posted by NickFitz
View Post
Instead, you should explicitly release resources once you no longer have any need of them; the associated memory allocation and release will happen behind the scenes. This paradigm gives you something extra to think about in the case you describe, but it gives you a lot less to think about in many other common cases. Many people believe the tradeoff to be worthwhile.
So it's not a trade off. C++ allows the programmer to choose several different approaches, including the one use by C#/Java, or invent his own from scratch if appropriate. Whereas C#/Java forces you to use just the one.
Of course I'd rather write assembler and ignore all this OOP nonsense.
Comment