Operators |
Top Previous Next |
What is translated > Operators Some of the names of Delphi operators are the same in C++ as for example '>' and '>=', others are named differently as for example the assignment operator ':=' is '=' in C++ and the equality operator '=' is '==' in C++. At the translation from Delphi to C++ for most operators it suffices just to substitute the name of the operator. But there are two difficulties:
In C++ two manners of use of the Delphi operators "and" and "or" have to be distinguished. The operator precedence in Delphi and C++ is different. The is-operator and the in-operator have to be substituted in special ways.
Also operator overloading has a different syntax.
|
This page belongs to the Delphi2Cpp Documentation |
Delphi2Cpp home Content |