[fpc-pascal] Enum RTTI
Wimpie Nortje
wimpienortje at gmail.com
Thu Nov 5 11:16:17 CET 2009
Thanks.
I don't think I use sparse enums. Mine are declared like:
type aEnum = (Val1, Val2);
So I think the Succ/Pred should work. I have never used typeinfo
before...will have a look at it.
>> 1) for enum_first to enum_last do....
> Is there any way to achieve the following easily:
>
> No, because succ/pred are not defined for sparse enums.
>
>> 2) NumberOfItems(enum)
>
> No. Even typeinfo() doesn't work for sparse enums.
>
More information about the fpc-pascal
mailing list