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: [email protected]
Reporter: [email protected]
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.
--