deep copying a struct

aliak something at
Fri Sep 6 10:37:16 UTC 2019

Are there any library APIs that allow this:

struct S {
     int[] arr;

void main() {
     const a = S([1,2,3]);
     S b = a.copy; // deep dup/copy

I'd also like to avoid implementing a copy constructor for each 

More information about the Digitalmars-d-learn mailing list