Improve *Foreach over Tuples* spec#2248
Conversation
Also add link to static foreach spec.
|
Thanks for your pull request and interest in making D better, @ntrel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
spec/statement.dd
Outdated
| If there are | ||
| two symbols declared, the first is the $(I index variable) | ||
| and the second is the $(I element alias). The index | ||
| must be of $(D int) or $(D uint) type, it cannot be `ref`, |
There was a problem hiding this comment.
It can also be long: https://run.dlang.io/is/kxSAFP as the index is size_t
There was a problem hiding this comment.
@wilzbach I've added long and ulong here, and updated runtime foreach index types, which listed just size_t instead of these. BTW for runtime foreach only, dmd accepts short and byte - I've not documented this though.
static foreach