in the end of the day i do not understands if this "feature" (allowing properies to use differnt type of indices ) is future safe or is just a bug in the compiler...
help apreciated because my code relies on this
thanks!
What you need is a dictionary (or a map, same thing) . TDictionary<TKey.TValue> or TFPGMap<TKey,TValue>
Both of these can query for items of either type Key or Type Value. property Keys[], property Values[], much more clear.
Although the example code with the class helper still compiles in trunk, you will run into trouble implementing a sane result from it
But it still does work. And please use generics.