[fpc-pascal] Enum RTTI
wimpienortje at gmail.com
Thu Nov 5 09:32:54 CET 2009
This follows from stuff I read in "[fpc-devel] Re: Testing for..in
feature". I read, and know from trying, that Low(enum) and High(enum)
does not work.
Is there any way to achieve the following easily:
1) for enum_first to enum_last do....
I very often have enums for which I want string descriptions. I couldn't
find a way to use RTTI to obtain the string descriptions so I resorted
to having an array of strings. The problem is that the enums change
frequently in item count and item order, which means I spend a lot of
time fixing the string<->enum functions .
More information about the fpc-pascal