[Issue 329] New: throwing within a finally statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 7 01:01:40 PDT 2006


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

           Summary: throwing within a finally statement
           Product: D
           Version: 0.166
          Platform: PC
               URL: http://www.digitalmars.com/d/statement.html#try
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


http://www.digitalmars.com/d/statement.html#try

# If an exception is raised in the FinallyStatement and is
# not caught before the FinallyStatement is executed, the
# new exception replaces any existing exception:

How can an exception be raised in a block statement before this
very block statement is executed?

# A FinallyStatement may not exit with a throw, goto, break,
# continue, or return; nor may it be entered with a goto.

The second quote contradicts with the first quote and its example code.


-- 




More information about the Digitalmars-d-bugs mailing list