Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by WalterBright

3 years ago

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

1 comment

WalterBright

Reply

eru  3 years ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities