Next: Compatibility (6.3)
Up: Type Identity, Compatibility, and
Previous: Type Identity, Compatibility, and
  Contents
  Index
Identity
Each type is identical to itself. Two types are identical
if they originate from the same type declaration.
Following example demonstrates this:
TYPE
Rec1 = RECORD a, b: CARDINAL END;
Rec2 = Rec1;
Rec3 = Rec1;
Rec4 = RECORD a, b: CARDINAL END;
Rec2 and Rec3 are identical because they are both
derived from Rec1.
While Rec4 has the same structure as Rec1 it is
not identical to Rec1, Rec2, or Rec3.
Andreas Borchert
2003-12-10