![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-54939567x1.png)
3
Examples:
The Pascal main program, r.p (record and array of records)
program p; procedure qq;
type compl = record re, im: integer end; arc = array[1..2] of compl;
var z: compl;
a:arc;
begin writeln(z.im); writeln(a[1].re); end;
begin end.
The commands to compile r.p and the
The Pascal main program, rr.p (two records)
hostname% pc
Fri Jan 27 17:35:50 1995 r.p:
In procedure qq:
w 18280 field z.im is used but never set
w 18280 field a[...].re is used but never set
program p;
type r = record a,b: integer end; procedure qq;
var r1, r2: r;
var i: integer; begin i:=r1.a; i:=r2.a; i:=r1.b; i:=r2.b; end;
begin
qq;
end.
The Pascal Compiler | 43 |