On 8 Mar 01, at 19:47, David James wrote:
[...]
However, I think the following example:
program test_class2(input,output);
procedure proc; type tcomp=packed record name:string[80]; class:1..15; end; var comp:tcomp;
begin end;
begin proc; end.
should compile (and it doesn't).
Your code doesn't compile under any version of Delphi (from v1.0 to 5.0), therefore the GPC behaviour of rejecting it is correct. This is the typical output of the Delphi compilers;
Borland Delphi Version 12.0 Copyright (c) 1983,98 Inprise Corporation pp.pas(6) Error: 'END' expected but 'CLASS' found pp.pas(7) Error: ';' expected but 'END' found pp.pas(8) Error: Undeclared identifier: 'tcomp' pp.pas(11) Error: '.' expected but ';' found pp.pas(13) Error: Identifier redeclared: 'Finalization'
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com