tw9039c.pp 334 B

123456789101112131415
  1. { the reason this compiles is that tdef.size and tabstractvarsym.getsize }
  2. { both return an aint, and then the size of ta is reported as low(aint) }
  3. type
  4. ta = array[1..high(ptrint)-4] of byte;
  5. tr = packed record
  6. l: longint;
  7. case byte of
  8. 0: (l: longint);
  9. 1: (e: ta);
  10. end;
  11. begin
  12. writeln(sizeof(ta));
  13. end.