[Issue 15413] Foreach over range with @disable this doesn't work

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 30 09:17:04 PDT 2016


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

--- Comment #2 from ZombineDev <petar.p.kirov at gmail.com> ---
I meant:

foreach (v; ir)
{
    // user code
}

// =====v====

for ( ; !ir.empty; ir.popFront())
{
    auto v = ir.front;
    // user code
}

--


More information about the Digitalmars-d-bugs mailing list