On Friday, 24 November 2017 at 12:36:42 UTC, Daniel Kozak wrote:
Should print something like this:
std.concurrency.OwnerTerminated@std/concurrency.d(223): Owner
terminated
Yes, it was, I was aware of this and put some sleep after that
too.
(immutable (int)[] v)
OK that parenteshis was the problem, thanks :)
But its a little confusing i think, since the syntax for creating
the array is different from the syntax on the arguments.
and:
immutable int[];
immutable (int)[];
immutable (int[]);
(differences? what/when use)
And other question:
When you send immutable data , i'm getting a copied data on the
other thread, or its the same data?
Like:
send(thread1, arr);
send(thread2, arr);
send(thread3, arr);
send(thread4, arr);
(multiple copies, or all threads are seeing the same addresses ? )