Prof A Olowofoyeku (The African Chief) wrote:
Hi Frank
I thought the problem with packed records was fixed in 20030830 - but this program:
program packer; uses strings; Type foo = packed record sig : array [ 0..3 ] OF char; end;
Var f : foo; Begin strcopy (f.sig, 'OK'); End.
produces this compiler error: packer.pas: In main program: packer.pas:10: cannot take address of packed record field `sig'
The error seems correct. Converting an array of Char to CString means taking the address.
Frank