![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-54939566x1.png)
3
The compiler issues warnings at the end of the procedure where the record variables are defined, that is, when some of the fields are definitely not set. However, no warnings are issued if fields are used in the source before they are initialized, as the control flow may be different.
In some cases, it is not possible to determine at compile time whether the fields have actually been initialized. For example:
•For the array variable V, whose elements are records, if any assignment of the kind V[i]:= X or V[i].F:= Y occurs, the compiler considers the corresponding fields of V[i] for all values of i to be initialized. If such a field is used, but not set, it is denoted as V[...].F in the warning message.
•All formal parameters are assumed to be initialized. Consequently, the compiler does not perform any checking for these component fields.
With the
Use the
Note – The
42 | Pascal 4.0 User’s Guide |