Addition Operator (+)

The addition operator calculates the sum of its two operands. If the expression is assigned to a variable, then the width of the destination variable is expanded as needed to accomodate the size of the result.

An XJEase variable can never overflow: it will just be extended to accommodate any new value.

Example

INT a, b, c;
a := 2;
b := 6;
c := a + b;   // c = 8 and has a width of 4