Containers
deadalnix
deadalnix at gmail.com
Wed Sep 1 18:23:06 UTC 2021
On Wednesday, 1 September 2021 at 13:22:46 UTC, Paul Backus wrote:
> It doesn't work when manipulating built-in types by reference
> either:
>
> ```d
> void manipulate(ref const(int)[] arr) {}
>
> void main()
> {
> const(int[]) arr;
> manipulate(arr);
> // Error: cannot pass argument `arr` of type `const(int[])`
> // to parameter `ref const(int)[] arr`
> }
> ```
No you right, this is not what I meant (but this is def what I
wrote).
I meant that int[][] or int[]* turtle the qualifier down.
More information about the Digitalmars-d
mailing list