beautypg.com

AMT Datasouth PAL User Manual

Page 93

background image

87

dup

dup

Description

Pushes a second copy of the top-most object on the operand stack.

Usage

Any

dup

Any Any

Any

Any. Stack object to duplicate.

Comments

This operator performs the same function as the PAL sequence "1 copy". It simply duplicates the
top-most object on the operand stack. For composite objects, the source and duplicate objects will
share the same composite data.

Hints

The copy operator discussion includes examples which show the subtle difference between copy
and dup when duplicating composite objects.