On 7/2/23 1:02 PM, Paul wrote:[...]Use a static foreach: ```dimport std.traits; // for FieldNameTuple. there are other ways, but this is the most straightforwardswitchlabel: // this is needed for break inside a static foreach final switch(s) { static foreach(mem; FieldNameTuple!myS) { case mem ~ mem: __traits(getMember, this, mem) += n; break switchalbel; } } ``` -Steve
Perfect. Thanks Steve!