Thinking about the difference between fixed and 'dynamic' arrays.

DLearner bmqazwsx123 at gmail.com
Sat Dec 3 22:46:31 UTC 2022


On Wednesday, 30 November 2022 at 02:29:03 UTC, Paul Backus wrote:

[...]
>
> If you want a dynamic array with value semantics, you should 
> use a library-defined container type (e.g., `struct 
> DynamicArray`).

I agree should not change existing meaning of
```
int[] A;
```

But why not allow a construct for value-type variable arrays like:
```
int[*] B;
```

Best regards



More information about the Digitalmars-d-learn mailing list