Copy of x where each members m is duplicated via m.dup if possible.
struct S { int ia; int ib; string s; // @gc } S x = { ia: 42, ib: 43, s: "abc" }; auto y = x.dupMembers; assert(x == y); assert(x.s !is y.s);
See Implementation