http://d.puremagic.com/issues/show_bug.cgi?id=5317


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com


--- Comment #3 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-05-24 
20:15:58 PDT ---
I can't reproduce your first test case, but I can reproduce your second one. 

It seems as if the main thread eats up the exceptions. Maybe it has to do with
buffered console output which isn't flushed properly? Here's another test case:

import std.stdio, std.concurrency, std.conv, core.thread;
void f()
{
    assert(0);
}
void main()
{
    auto tid = spawn(&f);
    Thread.sleep( dur!("seconds")( 2 ) );
}

If you remove the call to sleep, the assertion will throw. So while the main
thread is locked, something is blocking the exceptions from propagating? I've
no idea..

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

Reply via email to