Understanding and Replacing Deprecated Jam5 Syntax
with Jam7 Syntax
JPL Math Operations & Operators
Delete math verbs.
The math verb is no longer necessary;
arithmatic is automatically recognized.
math x = x + 1
x = x + 1
math days = @date(begin_date) - @date(end_date)
days = @date(begin_date) - @date(end_date)
Delete extra rounding & truncation operators
(% and %t ,
operating on integer
arithmatic. The rounding and truncation operators still work, but are only necessary where there is a real
float that is being rounded/truncated. In Jam5, due to various bugs,
integers were often converted to floats, so a truncation statement
may appear before every integer assignment or computation.
math %.0 x = x + 1
x = x + 1
Unary + Operators: Remove + signs that appear in if-statements. Previous Jam versions
generated errors when comparing nulls to numbers in logical or
bit-wise logical expressions. These bugs have been fixed, so these +
signs (which used an undocumented syntax to cast the variable as an
integer) can be removed.
if (+var == 0)
if (var == 0)
if (+flags & K_EXPOSE)
if (flags & K_EXPOSE)