On Tuesday, 17 June 2014 at 13:24:11 UTC, Dicebot wrote:
On Tuesday, 17 June 2014 at 13:13:00 UTC, Artur Skawina via Digitalmars-d wrote:
artur (who implemented both features last weekend; it started out as a fun "let's-see-how-D-would-look-if-it-had-this"-project, but after making them work and then converting a few small programs, almost immediately realized that he now does not want to live w/o this functionality)

I'd be very interested in seeing PR for the static foreach at the very least ;)

also, foreach that works outside of function scope would be awesome:

mixin template A(TL ...)
{
        foreach(i, T; TL)
        {
                mixin("T v" ~ i.to!string);
        }
}

Reply via email to