
9 Jul
2010
9 Jul
'10
4:16 p.m.
On 8 July 2010 23:27, OvermindDL1 <overminddl1@gmail.com> wrote:
Why not just go the simple route and define it as "undefined behaviour", then just pretend they will never get a negative number and let your math functions choke on it as they wish, making invalid values, dividing by zero, whatever, it is "undefined behaviour" after all.
I think that's somewhat too severe, since one of the reasons for using an unlimited-precision integer it to avoid UB and IDB.