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

Moving discriminant parameters to component base #53

Closed
wants to merge 1 commit into from

Conversation

dinkelk
Copy link
Collaborator

@dinkelk dinkelk commented Jun 27, 2024

By moving the discriminant to the base type we ensure that the component model always matches the implementation. When the discriminant is reflected in the implementation, it was up to the user to keep the model in sync with the code, which is far from ideal. This commit fixes that issue.

By moving the discriminant to the base type we ensure that the component
model always matches the implementation. When the discriminant is
reflected in the implementation, it was up to the user to keep the model
in sync with the code, which is far from ideal. This commit fixes that
issue.
@dinkelk
Copy link
Collaborator Author

dinkelk commented Jun 27, 2024

Abandoning. This does not quite work with the way Ada handles inherited discriminants, ie.

error: inherited discriminant not allowed here (RM 3.8 (12), 3.8.1 (6))

@dinkelk dinkelk closed this Jun 27, 2024
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

Successfully merging this pull request may close these issues.

1 participant