Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitwise operations on bitSlice #444

Open
AntonC9018 opened this issue Oct 19, 2022 · 1 comment
Open

Bitwise operations on bitSlice #444

AntonC9018 opened this issue Oct 19, 2022 · 1 comment

Comments

@AntonC9018
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants