Sign in Join
FPDoc Onlineexperiment

TObjectStack.Push function

Member of TObjectStackpublicIn unit Contnrs

Push an object on the stack.

Declaration

pascal
function Push(AObject: TObject): TObject

Arguments

AObject

The object instance to push on the stack.

Function result

The element pushed on the stack.

Description

Push pushes another object on the stack. It overrides the Push method as implemented in TStack so it accepts only objects as arguments.

Errors

If not enough memory is available to expand the stack, an exception may be raised.

See also

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