Warning: ZQUIT takes an integer of 1 or more; {value} acts as a bare ZQUIT and clears the whole stack
The argument of ZQUIT is a literal below 1, such as 0 or a negative, or a non-number.
ZQUIT n removes n stack levels, and n must be an integer of 1 or more. IRIS compiles
the command, but such an argument acts as a bare ZQUIT and clears the whole stack. Write
the integer meant, or a bare ZQUIT to clear the stack on purpose.
IRIS compiles the example.
ROUTINE Demo.ZQuitArgument
Main
Set $ZTrap = "Fail"
Do Work
Write "done", !
Quit
Work
Set value = ^Demo.ZQuitArgument("missing")
Write value, !
Quit
Fail
Write "failed: ", $ZError, !
ZQuit 0 //! A6613
Quit