Why can't I pass a const array to a function that takes scope const arrays?

Adnan relay.public.adnan at outlook.com
Mon Feb 17 14:20:55 UTC 2020


On Monday, 17 February 2020 at 14:04:34 UTC, Adnan wrote:
> On Monday, 17 February 2020 at 13:44:55 UTC, Adnan wrote:
>> [...]
>
> Okay I changed to
> module strassens_matmul;
>
> [...]

I changed getPointPtr to following and now it works

     /// row and column are 0 index-based
     void assign(T)(ref T[][] mat, ulong row, ulong column, scope 
const T value) {
         mat[row][column] = value;
     }


More information about the Digitalmars-d-learn mailing list