So I was reading a Sepples tutorial for experienced C users and that guy keeps telling me that new and delete are better than malloc and free.
Why? What's wrong with them?
Most Sepples programmers I met haven't even heard of malloc() and free(). Why? What's wrong with them?
They require that you are not a total fucktard who doesn't understand the basics of memory management.
Name:
Anonymous2010-05-08 7:49
new and delete are syntactic sugar for malloc and free, but only for classes. They also call the class' constructor and destructor.