[Issue 5538] New: Immutable classes can't be passed as messages in std.concurrency

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 7 11:39:27 PST 2011


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 at puremagic.com
        ReportedBy: tomeksowi at gmail.com


--- Comment #0 from Tomasz Sowiński <tomeksowi at 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: -------


More information about the Digitalmars-d-bugs mailing list