HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 238

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 237
214 Pascal 4.0 Users Guide
9
Type Equivalence
The Pascal compiler produces several diagnostics that generate the following
message:
non-equivalent types
In general, Pascal considers types to be the same only if they derive from the
same type identifier. Therefore, the following two variables have different
types, even though the types look the same and have the same characteristics.
The assignment:
x := y
produces the following diagnostic messages:
x : record
a: integer;
b: char;
end;
y : record
a: integer;
b: char;
end;
Mon Feb 13 14:22:46 1995 inchar.p:
E 25170 line 12 - Type clash: non-identical record types
... 25560: Type of expression clashed with type of variable in assignment
Seitenansicht 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare