|
|
|
|
|
by iainmerrick
2945 days ago
|
|
You say that as if it’s entirely the responsibility of the programmer to avoid these bear traps that have been left lying around everywhere. Why not just have the compiler zero the memory, and thereby remove the trap? Seems very sensible to me. Do you think it’s a bad idea, and if so, why? |
|
As a type qualifier keyword:
Or as a declaration specifier: Or a special constant for suppressing zero initialization: Similarly, unspecified order of evaluation could be supported by explicit request: