Sign in Join
FPDoc Onlineexperiment

GetTypeKind function

In unit System

Return type kind for a type.

Declaration

pascal
function GetTypeKind(const T: AnyType): TTypeKind

Description

GetTypeKind is a compiler intrinsic: it returns the type kind for the type T. In difference with the TypeInfo, if no type information was yet generated for the type, this statement will not ensure that the type information is available: the compiler knows the correct value, and will directly insert it into the code as a constant.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.