7.2.7.2 The GOTO statement

The GOTO statement branches to another location in the same procedure. The destination where to branch to is referenced by a label . The GOTO statement lets the execution of the procedure continue at the statement following the label.

goto-statement.gif

The label, the GOTO statement refers to may be defined above or below the location of the GOTO statement. However, the label must be defined in the same procedure. The device driver interpreter does not support branches across procedure boundaries.

Some words about loops

Principally GOTO statements may be used to create loops within a procedure. You are strongly discouraged from doing so. This is because all procedures for a device (more exactly spoken the procedures of all devices operated at the same physical interface) are executed sequentially. If now one procedure is caught in a loop for some time or perhaps forever, no other procedures will run. The device driver will appear to be frozen.