digitalmars.D.learn - Bug or expected?
- SrMordred (5/5) Jan 08 2019 size_t[2] a;
- Steven Schveighoffer (4/11) Jan 08 2019 Honestly, I wouldn't have expected either to work. My understanding was
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
Jan 08 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[]; // fineHonestly, I wouldn't have expected either to work. My understanding was that array operations require slicing on all sides. -Steve
Jan 08 2019