Skip to content

Conversation

Hackerpilot
Copy link
Contributor

@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
Contributor 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
Development

Successfully merging this pull request may close these issues.

2 participants