[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

Default

Return Default initialized value

Declaration

Source position: system.fpd line 86

function Default(

  const T: AnyType

):AnyType;

Description

Default is a compiler intrinsic: it returns for every type T a default value. In essence, this is a block of memory that is zeroed out. It can be used to correctly initialize any type, and more importantly, a managed type. It also works using a generic type template.

This function cannot be used on any of the file types or complex types that contain a file type.

See also

TypeInfo

  

Return pointer to type information for type

Initialize

  

Initialize memory block using RTTI

Finalize

  

Finalize (clean up) memory block using RTTI


Documentation generated on: Nov 16 2015