hasStaticMember and enums
Jacob Carlborg
doob at me.com
Tue Sep 22 18:42:11 UTC 2020
On 2020-09-22 14:40, Steven Schveighoffer wrote:
> So I could potentially loop through each member of tupleof and check if
> the name matches, but I would prefer a more direct route.
Yeah, that was what I was thinking of.
With `.tupleof` it might be a bit more complicated to get the name, but
you know for sure that you're only looking at the fields. It seems like
the other approaches have edge cases.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list