deep copying / .dup / template object.dup cannot deduce function from argument types
rumbu via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Dec 14 00:41:34 PST 2015
On Sunday, 13 December 2015 at 18:54:24 UTC, Robert M. Münch
wrote:
> Hi, I just wanted to naively copy an object and used:
>
> a = myobj.dup;
>
> [...]
A naive clone method for objects:
https://github.com/rumbu13/sharp/blob/c34139449a078618e807a3f206541656df1bea6a/src/system/package.d#L46
More information about the Digitalmars-d-learn
mailing list