[fpc-devel]Some set problems
Pavel V. Ozerski
pavel at insect.mail.iephb.ru
Fri Nov 16 10:04:29 CET 2001
Hello,
May be, these found problems are obsolete and are lready fixed but I could report them.
FPC 1.1 (my compiler is based on 1-Nov sources):
1) does not support set of boolean, unlike Delphi and VP;
2) sizeof applied to set types demonstrates that sets in FPC are not the same as sets in Delphi and VP:
{$apptype console}
type
t1=set of 0..1;
t2=set of 0..15;
t3=set of 0..31;
t4=set of 0..63;
t5=set of 0..127;
t6=set of 0..255;
begin
writeln(sizeof(t1),' ',
sizeof(t2),' ',
sizeof(t3),' ',
sizeof(t4),' ',
sizeof(t5),' ',
sizeof(t6));
end.
Output:
Delphi 3, Delphi 6, VP2.1:
1 2 4 8 16 32
FPC 1.1:
4 4 4 32 32 32
Sincerely,
Pavel
More information about the fpc-devel
mailing list