https://issues.dlang.org/show_bug.cgi?id=4508

Dmitry Olshansky <dmitry.o...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dmitry.o...@gmail.com
         Resolution|---                         |FIXED

--- Comment #5 from Dmitry Olshansky <dmitry.o...@gmail.com> ---
With static foreach you can do this, and AFAICT is exactly what is required:

import std.typecons;

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

--

Reply via email to