ascot diagnostics

A7548

Warning: No QUIT or RETURN; execution falls through to what follows

The body of a label, or a routine’s main body, runs off its end without a Quit or Return, and no label follows for it to fall into: it is the last, or a procedure block comes next. IRIS compiles it and quits there implicitly, so the code runs; an explicit Quit says the body ends on purpose.

IRIS compiles the example.

ROUTINE Demo.MissingQuit
Main
    Do Report
    Write "done", !
    Quit
Report
    Write "reporting", ! //! A7548

All diagnostics