next up previous contents index
Next: Expressions and Operators Up: Variables Previous: Procedure Prototypes

Initializing Variables

 

Config variables must be initialized when they are declared. Variables other than config variables can only be initialized in the program text:

    config var
        N : integer = 100;

    var
        heat : float;       -- cannot initialize heat in its declaration
    ...

    heat := 1.0;            -- initialize heat in the program text



Kay Nettle
Fri Feb 21 21:14:29 CST 1997