Passing associative array to another thread

Jacob Carlborg doob at me.com
Mon Sep 24 23:26:06 PDT 2012


On 2012-09-25 00:47, Sean Kelly wrote:

> 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.

Hey, if it's immutable why use std.concurrency at all? Just import the 
module and use the variable willy nilly. I mean, isn't that the whole 
point of immutable anyway, you can share it freely among threads without 
any risks?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list