It works for me:

Sorry, you are right, it loops:

void main() {
    import std.stdio, std.bigint;

    immutable BigInt one = 1;
    immutable BigInt two = 2;
    uint n = 0;

    foreach (immutable i; two .. n + one)
        i.writeln;
}


Bye,
bearophile

Reply via email to