http://d.puremagic.com/issues/show_bug.cgi?id=9122
Summary: std.concurrency send() fails with multiple arrays
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from John Colvin <[email protected]> 2012-12-07
06:04:25 PST ---
import std.concurrency;
import std.stdio;
void foo() {
bool running = true;
while(running) {
receive(
(immutable(double)[] a, immutable(double)[] b, int i) {
writeln(a, b, i);
},
(OwnerTerminated e) {
running = false;
}
);
}
}
void main() {
double[] a,b;
a = [1.1];
b = [2.2];
int i= 3;
auto tid = spawn(&foo);
tid.send(a.idup, b.idup, i);
}
I get: core.exception.AssertError@ std/variant.d(277): target must be non-null
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------