Previous: $T: Type-Checked Pointers Switch To the Table of Content Next: $V: Var-String Checking Switch

- 3.2.24 -
Compiler Directives
Switch and Parameter Directives

$TPO: Typed Inc/Dec Operations Switch

Targets: MS-DOS, OS/2, Win32


Compiler directives

Enables/disables typed Inc/Dec operations on pointers.

Syntax:
  {$TPO+} or {$TPO-}
Default:
  {$T+}
Example:
var
  a: ^DWORD;
begin
  a := Pointer(0);
  inc(a);
  Writeln(Longint(a));
end.
The sample above prints 1 if typed operations are disabled ($TPO-}. If typed operations are enabled ($TPO+}, the application prints 4.


Previous: $T: Type-Checked Pointers Switch To the Table of Content Next: $V: Var-String Checking Switch
$T: Type-Checked Pointers Switch Table of Content $V: Var-String Checking Switch

- 3.2.24 -