Re: Is this should work?

2016-10-17 Thread markov via Digitalmars-d-learn
Thanks. So something like this would be helpful in core.thread? void startThread(alias fun, P...)(P p){ new Thread({fun(p);}).start(); }

Is this should work?

2016-10-16 Thread markov via Digitalmars-d-learn
void test(string line){ ... }; void main(){ string[] list; foreach (line; list) new Thread({test(line);}).start(); ... }