Delphi operator and priority
Single Object operator (highest priority) |
@ |
Get the address of a variable or function (returns a pointer) |
Not |
Logical or bitwise Inversion |
Multiplication and division Operators |
* |
Multiply or set intersection |
/ |
Floating Point Division |
Div |
Integer Division |
MoD |
Modulo (remainder of Integer Division) |
As |
Program running stage type conversion (rtti operator) |
And |
Sum of logic or by bit |
SHL |
Shift left by bit |
SHR |
Shift right by bit |
Addition and subtraction Operators |
+ |
Add an offset to the sum, set union, string connection, or pointer. |
- |
Subtract, set difference set, or pointer to reduce an offset |
Or |
Logical or bitwise OR operation |
XOR |
Logical or bitwise exclusive or operation |
Relational and comparison operators (lowest priority) |
= |
Determine if it is equal |
<> |
Judge whether it is not equal |
< |
Judge whether it is less |
> |
Determine whether the value is greater |
<= |
Determines whether it is less than or equal to, or whether it is a subset of a set. |
> = |
Determines whether it is greater than or equal to, or whether it is the parent set of a set |
In |
Determine whether a member is a set Member |
Is |
Determine whether the object type is compatible (another rtti operator) |