std.concurrency bug?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 20 11:42:48 PDT 2014


On 05/20/2014 11:38 AM, Charles Hixson via Digitalmars-d-learn wrote:
> Is it a bug that an immutable struct cannot be sent to a thread?  (It compiles
> without problem if I make all elements mutable.)

Does the struct have any mutable indirection? Then it is illegal. 
Otherwise, can you demonstrate with minimal code please?

Ali



More information about the Digitalmars-d-learn mailing list