Summary: exception specifications (but not in Java style)
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Ladislav Hruska <> 2011-01-06 
13:44:04 PST ---
C++ and Java are two extremes. C++ checks nothing, Java checks everything

D should stay in the middle and allow compile time checked exception
specifications at explicitly specified points (typically functions exported
from DLLs). Function anotated by exception specification should not compile
unless the compiler can verify it doesn't throw anything unexpected.

In C++ there's no way in practice to find out all exceptions a complex code
could throw, the proposed feature would allow to eliminate this uncertainty in
D code.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to