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

Disabling other ops should be allowed #39

Open
schveiguy opened this issue Nov 29, 2019 · 0 comments
Open

Disabling other ops should be allowed #39

schveiguy opened this issue Nov 29, 2019 · 0 comments

Comments

@schveiguy
Copy link
Contributor

Right now, I can disable opIndex. But for unions with pointers in them, I want to disable ALL operations except dereferencing and assignment. However, even though it appears the code should honor any DisableOpAttribute, I can't build them because the struct is private.

I thought of creating a RefTo type struct, but that doesn't work, because I can't initialize the TaggedAlgebraic with a raw pointer (functionality which I want to keep).

Alternatively, if there was a way to say I only want to call @safe calls in any possible case, then I would be for that as well. This is in general what I'm trying to achieve.

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

1 participant