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

What should dynamic BitFlags look like? #12

Closed
sairus7 opened this issue Dec 2, 2022 · 2 comments
Closed

What should dynamic BitFlags look like? #12

sairus7 opened this issue Dec 2, 2022 · 2 comments

Comments

@sairus7
Copy link

sairus7 commented Dec 2, 2022

I want to read a bunch of bit mask names and codes from a file at runtime and construct a collection of such flags. What should it be? A dict or a tuple? Wrapped into a PooledArray or similar container?

@jmert
Copy link
Owner

jmert commented Dec 10, 2022

Since this package constructs types to represent a set of flags, I think your only option would be to eval an Expr containing the definitions. (Unless I'm missing what you mean.) That's more of a general Julia question than something specific to this package, though.

@sairus7
Copy link
Author

sairus7 commented Dec 11, 2022

You are right, this is not a question about this particular package, but rather a general question about how to make a dynamic bitflags.

@jmert jmert closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants