Delphi 的运算符重载,2 - 可重载运算符列表

类别运算符运算符标识使用
转换隐式转换ImplicitImplicit(a: type): resultType;
显式转换ExplicitExplicit(a: type): resultType;
一元-NegativeNegative(a: type): resultType;
+PositivePositive(a: type): resultType;
IncIncInc(a: type): resultType;
DecDecDec(a: type): resultType
notLogicalNotLogicalNot(a: type): resultType;
notBitwiseNotBitwiseNot(a: type): resultType;
TruncTruncTrunc(a: type): resultType;
RoundRoundRound(a: type): resultType;
比较=EqualEqual(a: type; b: type): Boolean;
<>NotEqualNotEqual(a: type; b: type): Boolean;
>GreaterThanGreaterThan(a: type; b: type) Boolean;
>=GreaterThanOrEqualGreaterThanOrEqual(a: type; b: type): resultType;
<LessThanLessThan(a: type; b: type): resultType;
<=LessThanOrEqualLessThanOrEqual(a: type; b: type): resultType;
二元+AddAdd(a: type; b: type): resultType;
-SubtractSubtract(a: type; b: type): resultType;
*MultiplyMultiply(a: type; b: type): resultType;
/DivideDivide(a: type; b: type): resultType;
divIntDivideIntDivide(a: type; b: type): resultType;
modModulusModulus(a: type; b: type): resultType;
shlLeftShiftLeftShift(a: type; b: type): resultType;
shrRightShiftRightShift(a: type; b: type): resultType;
andLogicalAndLogicalAnd(a: type; b: type): resultType;
orLogicalOrLogicalOr(a: type; b: type): resultType;
xorLogicalXorLogicalXor(a: type; b: type): resultType;
andBitwiseAndBitwiseAnd(a: type; b: type): resultType;
orBitwiseOrBitwiseOr(a: type; b: type): resultType;
xorBitwiseXorBitwiseXor(a: type; b: type): resultType;