Comparison of two 'dynamic arrays'.

Siarhei Siamashka siarhei.siamashka at gmail.com
Sun Nov 13 14:39:26 UTC 2022


On Sunday, 13 November 2022 at 14:28:45 UTC, DLearner wrote:
> Creating a step 1.5:
> ```
> int[] B = A;
> ```

```D
auto B = A.dup;
```

This will create a copy of A rather than referencing to the same 
buffer in memory.


More information about the Digitalmars-d-learn mailing list