4 ms·
See my reply to masklin in this thread for why this is incorrect. In release mode, the behavior of integer overflow in Rust is not UB/cannot happen, but modulo
by fluffy87 6y ago
See my reply to masklin in this thread for why this is incorrect. In release mode, the behavior of integer overflow in Rust is not UB/cannot happen, but modulo two arithmetic.
These two are not the same thing.
- tom_mellior 6y agoHuh? Parent wrote: >> Rust wraps in release mode and traps in debug mode You wrote: > In release mode, the behavior of integer overflow in Rust is not UB/cannot happen, but modulo two arithmetic. The parent didn't claim or imply that overflow is UB. The parent wrote that it "wraps", which is equivalent to your "modulo two arithmetic". You are not in disagreement, so why are you disagreeing?