How to iterate string enum values?
monkyyy
crazymonkyyy at gmail.com
Tue Dec 24 21:49:51 UTC 2024
On Tuesday, 24 December 2024 at 12:07:56 UTC, Anton Pastukhov
wrote:
> On Monday, 23 December 2024 at 23:46:33 UTC, Jim Balter wrote:
>> I had the exact same issue yesterday. Allow me to quote
>> ChatGPT:
>
> Thanks. That sounds plausible but I got burned by ChatGPT more
> than once, so I still would like to hear from a human being.
> Generally GhatGPT is not very good with D and hallucinates
> pretty often
Id argue that the problem is that d's type system keeps track of
enum-ness in a strange way
https://github.com/crazymonkyyy/debuglibprototype/blob/master/old/humanname.d
> if(!is(T == enum))
rapidly becomes nessery to spam everywhere
More information about the Digitalmars-d-learn
mailing list