digitalmars.D.bugs - [Issue 5538] New: Immutable classes can't be passed as messages in std.concurrency
- d-bugmail puremagic.com (26/26) Feb 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5538
- d-bugmail puremagic.com (12/12) Apr 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5538
http://d.puremagic.com/issues/show_bug.cgi?id=5538 Summary: Immutable classes can't be passed as messages in std.concurrency Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: tomeksowi gmail.com --- Comment #0 from Tomasz SowiĆski <tomeksowi gmail.com> 2011-02-07 11:37:04 PST --- Test case: class C {} thisTid.send(new immutable(C)()); receive((immutable C) { writeln("got it!"); }); This throws: core.exception.AssertError /usr/include/d/dmd/phobos/std/variant.d(285): immutable(C) And when I replace immutable(C) with Rebindable, I get "Aliases to mutable thread-local data not allowed.". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5538 David Simcha <dsimcha yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha yahoo.com --- Comment #1 from David Simcha <dsimcha yahoo.com> 2011-04-12 17:41:07 PDT --- https://github.com/D-Programming-Language/phobos/commit/325a8fe64a15c57dcde3f8326ad35cfd638f86c7 Fixed the Rebindable part. Hopefully the Variant part will be fixed with Rob Jacques's upcoming Variant update. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 12 2011