January 08, 2019 Bug or expected? | ||||
---|---|---|---|---|
| ||||
size_t[2] a; size_t[2] b; auto x = a[] & b[]; //array operation without destination memory not allowed size_t[2] y = a[] & b[]; // fine |
January 08, 2019 Re: Bug or expected? | ||||
---|---|---|---|---|
| ||||
Posted in reply to SrMordred | On 1/8/19 3:12 PM, SrMordred wrote:
> size_t[2] a;
> size_t[2] b;
>
> auto x = a[] & b[]; //array operation without destination memory not allowed
> size_t[2] y = a[] & b[]; // fine
>
Honestly, I wouldn't have expected either to work. My understanding was that array operations require slicing on all sides.
-Steve
|
Copyright © 1999-2021 by the D Language Foundation