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

Implement definition of foreign enums by reference to original definition in foreign module #201

Merged
merged 7 commits into from
Jul 28, 2015

Conversation

knuton
Copy link
Contributor

@knuton knuton commented Jul 20, 2015

This makes enums robust against reordering as discussed in #200.

Johannes Emerich added 2 commits July 22, 2015 12:15
Generate only abstract types for enums from transitive dependencies.

This causes enum generation to happen in three variants:
  - regular for locally defined enums
  - with indirection for enums defined in direct dependency
  - without member access (abstract type over integers) for enums
defined in transitive dependency

This seems like a lot of complexity, but I am coming to believe that it
is necessary complexity. It mirrors the three forms of module
generations for local, direct and transitive modules, where we generate
the full definition, then the accessor, then only the types (and right
now, erroneously I think, the enums).
rosadam added a commit that referenced this pull request Jul 28, 2015
Implement definition of foreign enums by reference to original definition in foreign module
@rosadam rosadam merged commit 5551cd6 into master Jul 28, 2015
@rosadam rosadam deleted the enum-proxies branch July 28, 2015 11:10
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.

2 participants