digitalmars.D.bugs - [Issue 13262] New: Cannot send certain shared data to another thread
- via Digitalmars-d-bugs (21/21) Aug 05 2014 https://issues.dlang.org/show_bug.cgi?id=13262
https://issues.dlang.org/show_bug.cgi?id=13262 Issue ID: 13262 Summary: Cannot send certain shared data to another thread Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: andrei erdani.com Consider: import std.concurrency; void fun(Tid tid, shared int[] a) { tid.send(a); } This doesn't compile due to an obscure memcpy type mismatch in std.variant. It should be legal to send pretty much any shared data across threads. --
Aug 05 2014