12 May
2003
12 May
'03
7:30 p.m.
Frank Heckenbach wrote:
TEST bitsizes.pas: failed
TEST fjf31.pas: failed: 2, 2, 1
TEST pack1.pas: failed
These tests test the size of packed records which is affected by maximum-field-alignment. So I think we should just insert `{$maximum-field-alignment 0}' in those tests as well, do you agree?
The question is whether a maximum-field-alignment (command line or compiler) option should have any effect on packed types. I didn't think about that case before, but my answer to that question is "no". Var R: packed record a: Boolean; b: 1..3; end; Use of "packed" could imply a local maximum-field-alignment=8 (or 0) for the type, so that always SizeOf( R) = 1. Any other opinions ? Regards, Adriaan van Os