13 Dec
2003
13 Dec
'03
5:34 p.m.
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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707