C considered dangerous
C considered dangerous
Posted Sep 21, 2018 18:14 UTC (Fri) by mathstuf (subscriber, #69389)In reply to: C considered dangerous by ncm
Parent article: C considered dangerous
> C++ does still have integer overflow UB, as does Rust
No, Rust defines integer overflow as twos-complement (though in debug builds it will panic). You can use an always-panicking addition however, but that's not the default.
