On Sep 22, 2012, at 2:24 AM, Martin Drasar <dra...@ics.muni.cz> wrote:

> On 21.9.2012 19:01, Jacob Carlborg wrote:
>> Perhaps declaring the associative array as "shared". An alternative
>> would be to serialize the aa, pass it to another thread, and deserialize
>> it. That would though create a copy.
> 
> Hi Jacob,
> 
> thanks for the hint. Making it shared sounds a bit fishy to me. My
> intention is to pass some read only data, that are in fact thread local
> and there is no real need to make them shared.

If you're passing via std.concurrency then you'll currently have to cast to 
shared.  I'd been considering allowing Unique!T to be sent as well, but haven't 
done so yet.

Reply via email to