GetTypeKind

Return type kind for a type

Declaration

Source position: system.fpd line 94

  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

Name Description
Default Return Default initialized value
Finalize Finalize (clean up) memory block using RTTI
Initialize Initialize memory block using RTTI
TypeInfo Return pointer to type information for type
TypeOf Return pointer to VMT of an object