mir-algorithm icon indicating copy to clipboard operation
mir-algorithm copied to clipboard

Bitwise operations on `bitSlice`

Open AntonC9018 opened this issue 2 years ago • 1 comments

I expected the following to be allowed:

auto a = bitSlice(x);
auto b = bitSlice(x);
a[] |= b[];

Iterating through individual bits and computing the bitwise operation one-by-one kinda ruins the whole idea of storing the bools as bits that these operations would be allowed.

AntonC9018 avatar Oct 19 '22 20:10 AntonC9018

Maybe it's not part of what bitSlice are designed to do, but then why is assigning the whole range to some value allowed?

AntonC9018 avatar Oct 19 '22 20:10 AntonC9018