Passing Command Line Arguments to a new Thread

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 7 12:17:36 PDT 2014


On 2014-08-07 20:23, "Nordlöw" wrote:
> What is the best way to forward a string[] as argument to a function
> called through std.concurrency.spawn().

What about just accessing core.runtime.Runtime.args from the new thread?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list