Reset all Members of a Aggregate Instance

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at
Thu Dec 3 13:13:59 PST 2015

On Thursday, 3 December 2015 at 21:08:30 UTC, Sebastiaan Koppe 
> 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;

Need to assert that not a function and mutability 

More information about the Digitalmars-d-learn mailing list