www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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



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
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5538


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha yahoo.com



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