- DelphiTools - https://www.delphitools.info -

Operator precedence changes

dwsHere is a summary of recent DWScript changes, the major one is a change in operator precedence to something similar to Delphi and FreePascal.

Other changes are related to sets and bug fixes.

The precedence of operators has been changed to be inline with Delphi & FreePascal, this means that

And the DWScript operator precedence table is now

  1. @, not
  2. *, /, div, mod, and, shl, shr, sar, as, ^, <<, >>
  3. +, -, or, xor
  4. =, <>, <, >, <=, >=, in, is, implies, implements

Other miscellaneous notes on operators:

Other changes: