std.container.Array deep-copy?
yazd via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 9 23:27:33 PDT 2014
On Thursday, 9 October 2014 at 21:24:55 UTC, qznc wrote:
> On Thursday, 9 October 2014 at 21:14:46 UTC, qznc wrote:
>> How can you deep-copy a std.container.Array instance?
>
> Ok, the deep-copy problem already got resolved on reddit: Use
> dup.
>
> However, the error is still open. You cannot give an Array!X
> argument to constructor/replace/insertBefore of Array!X
> instances?
You will just need to slice it to provide a range.
More information about the Digitalmars-d-learn
mailing list