Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

D solved this particular problem by defining arithmetic as being 2-s complement, including wraparound behavior.


`-fno-strict-overflow` give you that behaviour in GCC and clang, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: