2.1.2 Overflow

For performance reasons, the AIR SPEED 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
  • PHP, JS, Flash 8: No native Int type, loss of precision will occur if a number reaches the float limit (252)

Alternatively, the air speed.Int32 and air speed.Int64 classes can be used to ensure correct overflow behavior at the cost of additional computations on certain platforms.