Bug or expected?

Steven Schveighoffer schveiguy at gmail.com
Tue Jan 8 20:22:23 UTC 2019


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


More information about the Digitalmars-d-learn mailing list