[fpc-pascal] No type info available for this type (Enumerated type with constant assignment)
Dennis Poon
dennis at avidsoft.com.hk
Tue Jul 24 11:06:17 CEST 2018
Sven Barth via fpc-pascal wrote:
> Dennis <dec12 at avidsoft.com.hk <mailto:dec12 at avidsoft.com.hk>> schrieb
> am Mo., 23. Juli 2018, 12:24:
>
> 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.
>
No only that, the following also gives error
for a in TMonthType do
begin
//a won't be assigned the proper values
end;
> Regards,
> Sven
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list