This appears to hang up dmd compiler 2.067.1. Changing parallel(s) to s works ok. Is this a known problem?

import std.stdio;
import std.string;
import std.format;
import std.range;
import std.parallelism;

int main(string[] argv)
{

        string s[100000];
        foreach (i, ref si ; parallel(s)){
                si = format("hi:%d",i);
        }

        foreach (ref rm; s[99000..99010]){
                writeln(rm);
        }
    return 0;
}

Reply via email to