|
|
|
|
|
by someonebaggy
67 days ago
|
|
One reason is that the language didn't originally intend for UB to be so broad. They probably expected that each value would be loaded into an int-sized register, and the calculation would then be performed on two int-sized registers with overflow handled in a platform-dependent but generally sane manner (not time travel). |
|
Makes me wonder how ergonomic would a language with actually correct signatures for the arithmetic operators be.