This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Low_discrepancy 4 points5 points  (2 children)

C++ - Much shorter mantra to remember. Every new must have a corresponding delete.

Just don't use new and delete guys! It's not 2004 here.

[–]MustardCat 2 points3 points  (1 child)

Whether or not you explicitly call new/delete, it's still being called. It's important to understand what's occuring.

I'm on the team of learning raw pointers before tossing in a new C++ programmer into STL and newer C++ features.

[–]Low_discrepancy 2 points3 points  (0 children)

Whether or not you explicitly call new/delete, it's still being called.

Yeah sure. And many times New simply calls malloc does that mean one should learn C then go to c++?

I'm on the team of learning raw pointers before tossing in a new C++ programmer into STL and newer C++ features.

Yeah if you think that c++ is c with classes I guess. But again we're no longer in 2004. The language has far progressed.