[fpc-pascal] Documentation example error
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jan 26 11:13:06 CET 2016
Graeme Geldenhuys wrote on Tue, 26 Jan 2016:
> To make the typeinfex/*.pp examples compilable, I had to make some
> changes as shown below. I don't hope text wrapping screws this up, but
> just in case, I attached the patch too. Before, it seems it was valid to
> typecast a Set as Integer(), but testing with FPC 3.0 it seems
> typecasting as Byte() is now required.
>
> If I don't, the compile gives the following error:
>
> ex8.pp(25,17) Error: Illegal type conversion: "LongInt" to "TMyEnums"
>
> Do you know when this change was made in FPC, and where it is documented
> (eg: wiki User Changes ...)?
The rttiobj unit is compiled in Delphi mode, hence
http://wiki.freepascal.org/User_Changes_2.6.0#Sizes_of_sets_in_TP.2FDelphi_mode
Jonas
More information about the fpc-pascal
mailing list