Combining Unique type with concurrency module

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 14 01:16:26 PDT 2015


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.


More information about the Digitalmars-d-learn mailing list