Copy a struct and its context

Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 10 22:44:13 PDT 2016


I recently noticed nested struct capture its context by reference 
(which, BTW, is not mentioned at all here: 
https://dlang.org/spec/struct.html#nested). And bliting a struct 
obviously doesn't do a deep copy of its context.

So my question is, is there a way to deep copy the context of a 
struct?


More information about the Digitalmars-d-learn mailing list