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

refactor enum code to do forward references of members #2568

Merged
merged 1 commit into from Sep 20, 2013

Conversation

WalterBright
Copy link
Member

Refactored to switch to lazy evaluation of enum members, which also enables enum members to be evaluated in any order.

@WalterBright
Copy link
Member Author

Once this is pulled, I intend to extend it so that enum members for imports are not semantically evaluated at all unless they are used. This is a first step to making all semantic evaluation of imports lazy, which should give us a big boost in compilation speed, as well as do a much better job at handling forward references.

MartinNowak added a commit that referenced this pull request Sep 20, 2013
refactor enum code to do forward references of members
@MartinNowak MartinNowak merged commit 40e6afc into dlang:master Sep 20, 2013
@WalterBright WalterBright deleted the enum-refactor branch September 20, 2013 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants