Regarding my previous post on Enumerating enum types in Delphi I asked claude.ai: Question: I need a way to iterate over all values of an enum type in Delphi. Something like: But that doesn't compile. I'd like to avoid programming a for-loop from Low() to High(). Answer: Unfortunately, Delphi doesn't have direct for-in syntax for … Continue reading Enumerating enum types in Delphi AI answer
Day: January 15, 2026
Enumerating enum types in Delphi
One would have thought that enumerating enum types in Delphi would be a no brainer, after all they have it in the name already. But this does not compile: So I though I'd just wrap it into a record and add an enumerator to that record, especially since I wanted to add some methods to … Continue reading Enumerating enum types in Delphi