summary refs log tree commit diff stats
path: root/lib/system/integerops.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #14209 [backport:1.2] (#14213)Andreas Rumpf2020-05-051-1/+1
| | | | * fixes #14209 [backport:1.2] * improve stability
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-5/+5
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* Treat zig like clang/gcc wrt integer arithmetic. (#13957)Hessam Mehr2020-04-221-1/+1
|
* added a switch -d:nimEmulateOverflowChecks for broken or old GCC versions ↵Andreas Rumpf2020-03-191-1/+1
| | | | (#13692)
* catchable defects (#13626)Andreas Rumpf2020-03-121-0/+132
* allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly