Summary: tuples should be indexable with foreach over range
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2010-07-26 09:53:12 PDT ---
The following should really work, as long as the bounds of the foreach loop are
known at compile time:

import std.typecons;

void main() {
    auto tup = tuple(1, "foo", 3.0).expand;
    foreach(i; 0..tup.length) {
        auto val = tup[i];

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to