[Issue 1513] try/catch/finally misbehavior on windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 12 23:52:10 PST 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


--- Comment #9 from Don <clugdbug at yahoo.com.au> 2010-12-12 23:50:25 PST ---
Reduced test case. Only two finally clauses are required, provided that each
try{} block contains a throw statement. This shows that nesting of finally
statements doesn't work at all on Windows. Raising priority to critical.
----
import std.stdio;

void main()
{
    try
    {
        try
        {
            writefln("throw ex1");
            throw new Exception("ex 1");

        }
        finally
        {
            writefln("throw ex2");
            throw new Exception("ex 2");
        }
    }
    finally 
    {
        writefln("finally");  // never reached
    }
}

-- 
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