| Thread overview |
|---|
March 08, 2014 Sending immutable classes using std.concurrency | ||||
|---|---|---|---|---|
| ||||
Can someone tell me what's wrong with this code? http://dpaste.dzfl.pl/9ff4271f866c I'm trying to send an immutable instance of a class to another thread using the send and receive functions in std.concurrency. I've already searched and found someone talking about std.variant being bugged. Has this still not been fixed, or is my code wrong? | ||||
March 08, 2014 Re: Sending immutable classes using std.concurrency | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Martin | On Saturday, 8 March 2014 at 16:36:56 UTC, Martin wrote: > Can someone tell me what's wrong with this code? > http://dpaste.dzfl.pl/9ff4271f866c > > I'm trying to send an immutable instance of a class to another thread using the send and receive functions in std.concurrency. > I've already searched and found someone talking about std.variant being bugged. Has this still not been fixed, or is my code wrong? I think this should be in next release: https://d.puremagic.com/issues/show_bug.cgi?id=7069 | |||
March 08, 2014 Re: Sending immutable classes using std.concurrency | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Dicebot | On Saturday, 8 March 2014 at 17:53:03 UTC, Dicebot wrote:
> On Saturday, 8 March 2014 at 16:36:56 UTC, Martin wrote:
>> Can someone tell me what's wrong with this code?
>> http://dpaste.dzfl.pl/9ff4271f866c
>>
>> I'm trying to send an immutable instance of a class to another thread using the send and receive functions in std.concurrency.
>> I've already searched and found someone talking about std.variant being bugged. Has this still not been fixed, or is my code wrong?
>
> I think this should be in next release:
> https://d.puremagic.com/issues/show_bug.cgi?id=7069
Sweet! Thanks, can't wait.
This is a bug from 2011 though, and it's almost a showstopper when using std.concurrency, how come this has not been fixed earlier?
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply