On 12/08/2021 9:36 PM, Learner wrote:
It seems that there is no easy way to transition from a postblit to a copy constructor, no?
struct Foo { this(ref Foo other) { foreach(i, v; other.tupleof) this.tupleof[i] = v; } @disable this(this); }
rikki cattermole via Digitalmars-d-learn Thu, 12 Aug 2021 03:16:04 -0700
On 12/08/2021 9:36 PM, Learner wrote:
It seems that there is no easy way to transition from a postblit to a copy constructor, no?
struct Foo { this(ref Foo other) { foreach(i, v; other.tupleof) this.tupleof[i] = v; } @disable this(this); }