Wiki-KopieMirror

Dies ist ein Mirror des Wikis von pascal.chat. Bearbeiten, Verlauf und Anmeldung finden dort statt.

Type/de

Deutsch · English · Français · Suomi · Русский

Zurück zu den reservierten Wörtern.\

=Type= Das reservierte Wort type leitet einen benutzerdefinierten Datentyp wie z. B. einen Record oder einen Aliasnamen ein.
Das reservierte Wort type beschreibt einen strukturierten Datentyp.\

Beispiel

pascal
type
  TVektor = array[0..3] of single;
  TMatrix = array[0..0] of TVektor;

  TMyClass = class(TObject)
    procedure MacheEtwas;
  end;

  TRec = record
    sa:  array [0..7] of single;
    abc: record
      a, b, c: byte;
    end;
    ma:  TMatrix;
  end;

var
  Vektor: TVektor;
  Matrix: TMatrix;
  Rec:    TRec;

Siehe auch

--Olaf 09:09, 22 February 2013 (UTC)


From the Free Pascal wiki, page "Type/de", as it stood on 2018-01-16 after a change by Mathias, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Version 1, zuletzt geändert von WikiArchive .