Sign in Join
FPDoc Onlineexperiment

TypeInfo function

In unit System

Return pointer to type information for type.

Declaration

pascal
function TypeInfo(const T: AnyType): Pointer

Description

TypeInfo is a compiler intrinsic: it returns a pointer to the generated type information (RTTI) for the type T. If no type information was yet generated for the type, this statement will ensure that type information is available, i.e. the result is always non-nil.

See also

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