Information: {what} is beyond what ascot checks
This marks a limit of ascot, not a fault in the code. ascot follows error handling only in
the forms it can read: a Try/Catch, a literal $ZTRAP label, a $ETRAP that is a plain
Goto Label. A $ETRAP command beyond that, or a $ZTRAP, $ETRAP, $ECODE or ZQUIT
value that isn’t a literal, is taken on trust, so what happens when an error comes goes
unchecked. IRIS compiles $ETRAP code only when it runs, and in a procedure block refuses a
non-literal $ZTRAP value outright. Nothing here needs changing for IRIS; a literal label
or a Try block would let ascot check the handling.
IRIS compiles the example.
ROUTINE Demo.NotChecked
Main
Set $ETrap = "Do Report Quit" //! A3913
Set rate = ^Demo.NotChecked("rate")
Write rate, !
Quit
Report
Write "no rate: ", $ZError, !
Quit