TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-290
#POP Built-In Function
#POP Built-In Function
Use #POP to delete the top level of one or more variables.
variable
is the name of an existing variable or the name of a built-in variable.
Result
#POP returns nothing.
Considerations
•
If the top level is the only level, #POP deletes the variable (except for built-in
variables.
•
When it encounters an #UNFRAME, TACL performs an implicit #POP for every
#PUSH (or PUSH) that was done since the most recent #FRAME was issued.
•
TACL performs an implicit #POP on #IN when #INPUT /UNTIL EOF/ or #INPUTV
/UNTIL EOF/ is used.
•
An attempt to pop a variable that has not been pushed produces an “Expecting an
existing variable” message; an attempt to pop a built-in variable that has not been
pushed produces a “Was not pushed” message.
•
Do not try to #POP the root directory (:). If you try this, TACL returns "*ERROR*
Cannot push or pop the root segment's root." In addition, to avoid losing standard
functionality from your TACL environment, do not pop the directories supplied as
part of the TACL software product (such as UTILS).
#POP variable [ [,] variable ] ...