Skip to content

Bitwise operations on bitSlice #444

Open

Description

@AntonC9018

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.

Activity

  1. AntonC9018 commented on Oct 19, 2022

    @AntonC9018
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions