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

Issue 13979 - ForeachType grammar does not allow 'ref' to appear after t... #773

Merged
merged 2 commits into from Jan 18, 2015

Conversation

Hackerpilot
Copy link
Member

@9rnsr
Copy link
Contributor

9rnsr commented Jan 17, 2015

This change does not allow:

shared int[1] arr;
foreach (shared ref const a; arr) {}

So, I'd suggest to add ForeachTypeAttrs that provides a list with arbitrary order of TypeCtors and ref.

@Hackerpilot
Copy link
Member Author

I've updated the pull to allow arbitrary ordering of the foreach type attributes.

@9rnsr
Copy link
Contributor

9rnsr commented Jan 18, 2015

LGTM.

9rnsr added a commit that referenced this pull request Jan 18, 2015
Issue 13979 - ForeachType grammar does not allow 'ref' to appear after t...
@9rnsr 9rnsr merged commit adf4faf into dlang:master Jan 18, 2015
@Hackerpilot Hackerpilot deleted the issue-13979 branch January 18, 2015 08:17
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