|
|
|
|
|
by Maxatar
31 days ago
|
|
No one is suggesting that every arithmetic operation is checked for overflow. The suggestion is that overflow is not undefined behavior. Getting rid of undefined behavior for overflow does not in anyway require that every operation is now checked, all it requires is specifying that the result of an arithmetic overflow depends on the platform and different platforms might produce different results. |
|
At a broad view, we get to a place where there's no "bug" when "what happens on overflow" is what the program(mer) wants.