Back Previous Next


Linguist basic package - push

Syntax:

   push [value] {variable}

Keyword handler:

   linguist.basic.keyword.BKPush.class

Runtime handler(s):

   linguist.basic.handler.BHPush.class

Function:

Pushes a variable onto the stack. If the word value is given the item pushed is a 32-bit value comprising the current value of the item, otherwise a reference to the item is pushed. The difference is significant; pushing a reference does not prevent the item's value on the stack changing as it is altered in the script, so whoever pops it will see any changes that have been made to it since it was pushed. If its value is pushed this will not change. So for example if you want to preserve a variable, allowing you free use of it, and then to restore its original value, use push value. See also pop.

Example(s):

   push value N
   push N


Back Previous Next