Hi guys

Hi guys,
Just wondering about the code below. Should the SizeOf(TSimple) equal to the SizeOf(TSetOfSimple) ?
When compiling with Z4 :
SizeOf(TSimple) = 4 bytes.
SizeOf(TSetOfSimple) = 1 Bytes.
I think that both TSimple and TSetOfSimple should have the same size!
//-------------------------------------------------- 
type
{$Z4}
  TSimple = (i1, i2, i3, i4, i5, i6, i7);
  TSetOfSimple = set of TSimple;
  // SizeOf(TSimple) = 4 Bytes.
  // SizeOf(TSetOfSimple) = 1 Byte.

Comments