Summary: Should be illegal to throw a non-Throwable
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
            Blocks: 5402

--- Comment #0 from Don <> 2011-01-13 00:36:35 PST ---
Exception chaining cannot work as long as it's legal to throw a non-Throwable.
(There is nothing to chain to!)
Even without exception chaining, this also creates a great deal of needless
complexity in the runtime.
This should be rejected at compile time:

void main()
  throw new Object;

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

Reply via email to