[next] [prev] [prev-tail] [tail] [up]

#### 1.2.10 $COPERATORS : Allow C like operators

This boolean switch determines whether C like assignment operators are allowed. By default, these assignments are not allowed. After the following statement:

{$COPERATORS ON}

The following operators are allowed:

Var
I : Integer;
begin
I:=1;
I+=3; // Add 3 to I and assign the result to I;
I-=2; // Substract 2 from I and assign the result to I;
I*=2; // Multiply I with 2 and assign the result to I;
I/=2; // Divide I with 2 and assign the result to I;
end;

[next] [prev] [prev-tail] [front] [up]