Held: Friday, February 13, 1998
type intreal = record
x: integer;
y: real;
end;
intreal_alias = intreal;
ir = record
a: integer;
b: real;
end;
realint = record
y: real;
x: integer;
end;
irr = record
a: integer;
b: real;
c: real;
end;
intrec = record
x: integer;
end;
iarr = array[1..10] of integer;
iare = array[2..11] of integer;
var
rec1: intreal;
rec2: intreal_alias;
rec3: ir;
rec4: irr;
rec5,rec6: record a: integer; b: real; end;
rec7: record a: integer; b: real; end;
rec8: realint;
rec9: intrec;
rec10: intrea;
arr1: iarr;
arr2: iare;
arr3,arr4: array[1..10] of integer;
arr5: array[1..10] of integer;
rec1 and rec3 are structurally equivalent as
they are both pairs of (integer,real).
rec1 and rec8 are not structurally equivalent,
as they order their elements differently.
rec1 and rec3 are not structurally
equivalent under naming as they name their pairs differently.
rec3 and rec6 are structurally equivalent
under naming.
rec1 and rec2 are not name equivalent.
rec1 and rec10 are name equivalent.
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Thu May 7 20:29:38 1998.
This page generated on Thu May 7 20:34:38 1998 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu