2.1.2 Overflow
For performance reasons, the Haxe Compiler does not enforce any overflow behavior. The burden of checking for overflows falls to the target platform. Here are some platform specific notes on overflow behavior:
- C++, Java, C#, Neko, Flash: 32-bit signed integers with usual overflow practices
Alternatively, the haxe.Int32 and haxe.Int64 classes can be used to ensure correct overflow behavior regardless of the platform at the cost of additional computations depending on the platform.