|
|
|
|
|
by boost_
3941 days ago
|
|
funny, every time someone says they're sick of C++ all i see in their code samples is horrible C with classes code. take for example a lot of C++ samples that that guy shows in the video, he calls it "C++11" and uses code like: - void* data = NULL; - no STL - no stack allocations - only dynamic memory allocation using new and delete i mean come on.. |
|
Stack allocations are discouraged because they can introduce non-deterministic bugs (stack overflow depending on the call sequence which can't be predicted in advance).
Its nearly impossible to write a game without dynamic allocations. Most of the time they'll override the new/delete operators and on that level they work almost exclusively on void*.
You're working on a scale where a lot of the C++ features work against you.