Hacker News new | past | comments | ask | show | jobs | submit login

I wouldn't mind traps on overflow, though I think overflow reporting with somewhat loose semantics that would allow an implementation to produce arithmetically correct results when convenient, and give a compiler flexibility as to when overflow is reported, could offer much better performance than tight overflow traps. On the other hand, the above function will cause gcc to silently behave in bogus fashion even if the result of the multiplication is never used in any observable fashion.



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

Search: