[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  


More information about the fpc-pascal mailing list