|
|
|
|
|
by quectophoton
756 days ago
|
|
C standard: "Undefined behavior means such a situation can't happen." Me: "If it can't happen then it would be fine to just crash on those situations, right? Because such a crash would never be reached. Can we get that?" C compilers: "No. Would you want to crash on signed integer overflow, for example?" Me: "Yes? Would be safer than the current situation at least." C compilers: "What, no, that would make your programs imperceptibly slower. Would you even like that?" Me: "Yes, I'll be able to live with that." C compilers: "Well, the answer is still no." |
|