Code: Select all
var
buffer1: array [20] of byte;
buffer2: array [10] of word at buffer1;
buffer2[0]:=0; // Bad Allignment error
with code above I get a bad allignment error.
When I change order of declarations, compiling is successfully.
Is this a compiler problem?
Code: Select all
var
buffer2: array [10] of word;
buffer1: array [20] of byte at buffer2;
buffer2[0]:=0; // OK
Regards,
Karl