Comment by pca006132
3 years ago
I think Rust doesn't allow integer overflow either, unless you specifically use the wrapping_* operations. Probably the same kind of thing will also happen to Rust.
3 years ago
I think Rust doesn't allow integer overflow either, unless you specifically use the wrapping_* operations. Probably the same kind of thing will also happen to Rust.
Rust either allows or traps on integer overflow depending on the mode. Either way it’s defined behaviour.
Ah, I forgot that it is also defined in release mode, but just considered undesirable.