TAL Programmer's Guide
Contents
096254 Tandem Computers Incorporated xiii
Section 12 Controlling Program Flow
IF Statement 12-2
IF Statement Execution 12-3
IF-ELSE Pairing 12-4
CASE Statement, Labeled 12-5
Statement Forms Generated by the Compiler 12-6
Directives and CASE Statements 12-7
Labeled CASE Statement Execution 12-7
WHILE Statement 12-8
DO Statement 12-10
FOR Statement 12-12
Nesting FOR Loops 12-13
Standard FOR Loops 12-13
Optimized FOR Loops 12-15
ASSERT Statement 12-17
Using ASSERT with ASSERTION 12-17
Nullifying ASSERT Statements 12-18
CALL Statement 12-19
Calling Procedures and Subprocedures 12-19
Calling Functions 12-20
Calling Procedures Declared as Formal Parameters 12-20
Passing Parameter Pairs 12-20
RETURN Statement 12-21
Returning From Functions 12-21
Returning From Nonfunction Procedures 12-23
GOTO Statement 12-24
Local Scope 12-24
Sublocal Scope 12-24
Usage Guidelines 12-25