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

References to other values in enums #58

Open
lundmark opened this issue Dec 6, 2017 · 2 comments
Open

References to other values in enums #58

lundmark opened this issue Dec 6, 2017 · 2 comments
Labels

Comments

@lundmark
Copy link
Collaborator

lundmark commented Dec 6, 2017

References to other values in enums, such as:

enum A {
B
};

enum C {
D = B,
};

@wc-duck
Copy link
Owner

wc-duck commented Dec 6, 2017

This shouldn't be that hard... But I'm just curious, what is your usecase?

@lundmark
Copy link
Collaborator Author

lundmark commented Dec 7, 2017

Sorry that is a good point.

The idea is of course to be able to do things such as:
D = ~B

or other bitfield manipulations with them.

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

No branches or pull requests

2 participants