I also added a constructor using the same approach as your destructor and this also worked:
this(int otherNum) @nogc { this.num = otherNum; debug writeln("this: ", this.num); }@evilrat: Will try what you suggested after work today. Too busy now.
Bienlein via Digitalmars-d-learn Thu, 19 Aug 2021 03:21:08 -0700
I also added a constructor using the same approach as your destructor and this also worked:
this(int otherNum) @nogc { this.num = otherNum; debug writeln("this: ", this.num); }@evilrat: Will try what you suggested after work today. Too busy now.