Sign in Join
FPDoc Onlineexperiment

TFPGObjectList.Create constructor

Member of TFPGObjectListpublicIn unit fgl

Instantiate a new object list.

Declaration

pascal
constructor Create(FreeObjects: Boolean=True)

Arguments

FreeObjects

When True the list owns the objects.

Description

Create instantiates a new object list. It will simply call the inherited constructor with the correct item size and will initialize FreeObjects with FreeObjects.

If FreeObjects is true, then the list owns the objects. Freeing or clearing the list will remove all objects from memory by calling the destructor. Deleting or removing an item from the list will also dispose of the element.

See also

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