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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal