Delphi operator and priority

Source: Internet
Author: User
Tags integer division

 

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.