Asynchronous concurrency with reference types

Sean Kelly sean at invisibleduck.org
Fri Feb 4 16:11:07 PST 2011


Peter Alexander Wrote:
> 
> Things might be easier if the error messages associated with D's 
> concurrent features weren't especially unhelpful (for example, trying to 
> spawn a thread with reference type parameters just gives you a 'no match 
> for spawn template' error). It's nice that it stops you from doing such 
> things, but it would be nice if it told me why it's not going to let me 
> do them.

Could you provide an example?  When passing reference data, the error you should see is: "Aliases to mutable thread-local data not allowed."  It's a static assert inside send().


More information about the Digitalmars-d-learn mailing list