Am 23.07.2018 um 17:05 schrieb Sven Barth via fpc-pascal:
>     Is this kind of enumerated type with constant assignment not supported
>     by FPC 3.0.4?
> 
>        TMonthType = (January=1, February, May=5,June, July);
> 
> 
> The enumeration type itself is supported, however TypeInfo() and thus
> GetEnumName() and friends are not. 
Instead of GetEnumName, you may use ReadStr and WriteStr - the IO functions use
their separate tables, which are generated correctly even for enums with
assignments.

-- 
Regards,
Martok

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to