[Issue 4508] tuples should be indexable with foreach over range
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 20 05:11:21 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=4508
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
`foreach (e; seq)` works at compile time for an AliasSeq, so I don't see why
`foreach (i; low..high)` can't make `i` known at compile-time if the bounds are
known.
I think we should rename this bug to apply to any CT-knowable index in a
ForeachRangeStatement.
--
More information about the Digitalmars-d-bugs
mailing list