hasStaticMember and enums

Jacob Carlborg doob at me.com
Tue Sep 22 10:12:34 UTC 2020


On Monday, 21 September 2020 at 23:33:17 UTC, Steven 
Schveighoffer wrote:
> I was confused today when I was looking to see if a particular 
> field name was a field of a struct and not a static member.

You can use `tupleof` to access the fields. Combine that with 
`__traits(identifier)` to get the name of a field.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list