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

Add: Bit at index in DataInt.Body #129

Open
oscbyspro opened this issue Nov 12, 2024 · 0 comments
Open

Add: Bit at index in DataInt.Body #129

oscbyspro opened this issue Nov 12, 2024 · 0 comments
Labels
addition oh, so shiny! brrr such code, much wow maybe to do, or not to do?

Comments

@oscbyspro
Copy link
Owner

oscbyspro commented Nov 12, 2024

Accessing a bit in a memory region is semi-common, but DataInt.Body doesn't have a Shift<T> bit index as integers do. Well, so I reasoned at some point. Count is semantically similar to Shift<T> so I suspect the following subscript would be convenient.

subscript(unchecked index: Count) -> Bit
@oscbyspro oscbyspro added addition oh, so shiny! brrr such code, much wow maybe to do, or not to do? labels Nov 12, 2024
@oscbyspro oscbyspro changed the title Add: Bit in DataInt.Body subscript Add: Bit from DataInt.Body subscript Nov 13, 2024
@oscbyspro oscbyspro changed the title Add: Bit from DataInt.Body subscript Add: Bit at index in DataInt.Body subscript Nov 13, 2024
@oscbyspro oscbyspro changed the title Add: Bit at index in DataInt.Body subscript Add: Bit at index in DataInt.Body Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny! brrr such code, much wow maybe to do, or not to do?
Projects
None yet
Development

No branches or pull requests

1 participant