Skip to content

TObjectStack.Push

Push an object on the stack.

Declaration

Source position: contnrs.pp line 168

public 
function TObjectStack.Push(AObject: TObject) : TObject;

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

Name Description
TObjectStack.Pop Pop the top object of the stack.
TObjectStack.Peek Look at the top object in the stack.