5 ms·
He is saying it should raise an exception which can be caught somewhere up the stack.
by higerordermap 6y ago
He is saying it should raise an exception which can be caught somewhere up the stack.
- asveikau 6y agoYes, but I would take minor issue in that I wasn't saying what should happen so much as what the options are given various tradeoffs. There are programming communities that have criticisms of exceptions and would like to avoid them. I am sympathetic to that. But if you do have exceptions, this is a good candidate. If you don't have exceptions, making integer overflow trap seems problematic. Posix signals may be another solution, with its own problems and ugliness.