Containers

Paul Backus snarwin at gmail.com
Wed Sep 1 18:32:29 UTC 2021


On Wednesday, 1 September 2021 at 18:23:06 UTC, deadalnix wrote:
> 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.

Are you sure?

```d
void manipulate(const(int)[][] arr) {}

void main()
{
     const(int[][]) arr;
     manipulate(arr);
     // Error: cannot pass argument `arr` of type `const(int[][])`
     // to parameter `const(int)[][] arr`
}
```


More information about the Digitalmars-d mailing list