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: REAL;
VAR W: Z;

I
X
Y

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

TOTAL SIZE = 24

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