get struct member names

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 14 07:54:26 PDT 2015


__traits(allMembers, Struct) can do it.

Get the free sample chapter from my book: 
https://www.packtpub.com/application-development/d-cookbook and 
it goes into more detail (I'm in a bit of a rush right now!)

the sample link is under the picture


More information about the Digitalmars-d-learn mailing list