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.
Siarhei Siamashka via Digitalmars-d-learn Sun, 13 Nov 2022 06:41:43 -0800
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.