Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How expensive is integer-overflow trapping in C++?. Parent comment
I've never claimed any such thing. Integer overflow is defined in Rust.
> That flag changes the behavior of integer overflow from trapping to “modulo 2 arithmetic”.
Yes?
> If you want to change the behavior of integer overflow in Rust to “always assume it cannot happen”, you need to “hack” the compiler AFAIK.
What I quoted was about rust "trapping" on integer overflow and having to "hack" it in order to make it not trap.
There are no comments on this comment yet.
I've never claimed any such thing. Integer overflow is defined in Rust.
> That flag changes the behavior of integer overflow from trapping to “modulo 2 arithmetic”.
Yes?
> If you want to change the behavior of integer overflow in Rust to “always assume it cannot happen”, you need to “hack” the compiler AFAIK.
What I quoted was about rust "trapping" on integer overflow and having to "hack" it in order to make it not trap.