Contents    Page-10    Prev    Next    Page+10    Index   

Record References

A record is a data area consisting of a sequence of items, which may be of different sizes and types. Items are addressed by name.


TYPE Z = RECORD I: INTEGER; X, Y, Z: REAL;
VAR W: Z;

I
X
Y
Z

Field: Offset: Size:
I 0 4
X 8 8
Y 16 8
Z 24 8

TOTAL SIZE = 32

W.X would produce the code (AREF W 8).