On Monday, 14 September 2015 at 00:11:07 UTC, Ali Çehreli wrote:
send(childTid2, cast(shared(Unique!S*))&u1);
And yeah this violates the idea of Unique. Sadly, I am not aware of any way to prohibit taking address of an aggregate.
Dicebot via Digitalmars-d-learn Mon, 14 Sep 2015 01:21:13 -0700
On Monday, 14 September 2015 at 00:11:07 UTC, Ali Çehreli wrote:
send(childTid2, cast(shared(Unique!S*))&u1);
And yeah this violates the idea of Unique. Sadly, I am not aware of any way to prohibit taking address of an aggregate.