Node:PtrDiffType, Next:, Previous:PtrCard, Up:Reference



PtrDiffType

(Under construction.)

Synopsis


type
  PtrDiffType  { built-in type }

Description

PtrDiffType is a (signed) integer type to represent the difference between two positions in memory. It is not needed except for rather low-level purposes.

Conforming to

PtrDiffType is a GNU Pascal extension.

Example


program PtrDiffTypeDemo;
var
  a: array [1 .. 10] of Integer;
  d: PtrDiffType;
  p, q: ^Integer;
begin
  p := @a[1];
  q := @a[4];
  {$X+}
  d := q - p
end.

See also