[Issue 21881] Array operation fails to compile even though it really should
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 30 10:59:15 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21881
--- Comment #3 from Blatnik <blatblatnik at gmail.com> ---
I just realized that this is especially annoying when dealing with
multi-dimensional arrays.
float[2] row0 = [1, 2];
float[2] row1 = [3, 4];
float[2][2] matrix = [
row0[] + row0[], // Error: array operation without destination memory not
allowed.
row1[] + row1[] // Error: array operation without destination memory not
allowed.
];
The error message says there is no destination memory even though there clearly
is.
--
More information about the Digitalmars-d-bugs
mailing list