www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8078] New: receiveOnly should tell which type it expected and got on mismatch

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8078

           Summary: receiveOnly should tell which type it expected and got
                    on mismatch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



02:45:37 PDT ---
import std.concurrency;

void test()
{
    receiveOnly!string();
}

void main()
{
    auto tid = spawn(&test);
    tid.send(1);
}

std.concurrency.MessageMismatch std\concurrency.d(235): Unexpected message type

Which type was expected? And which type did it receive? This needs to be part
of the error message..

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8078


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
         AssignedTo|nobody puremagic.com        |andrej.mitrovich gmail.com



19:10:05 PST ---
https://github.com/D-Programming-Language/phobos/pull/1062

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 08 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8078




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/8592a34d4b3f958af2bdadc30f158d67ed286a5a
Fixes Issue 8078 - receiveOnly exceptions should be informative.

https://github.com/D-Programming-Language/phobos/commit/f1ad5d359c3a37a67fdc83dfcd9a8c64d37a01c6


Issue 8078 - receiveOnly exceptions should be informative

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8078


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex lycus.org
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2013