Reset all Members of a Aggregate Instance
Sebastiaan Koppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 3 13:08:30 PST 2015
Haven't compiled but it should look something like this:
foreach(member; __traits(allMembers, typeof(c)))
__traits(getMember, c, member) = typeof(__traits(getMember,
c, member)).init;
More information about the Digitalmars-d-learn
mailing list