[Issue 5447] New: Should be illegal to throw a non-Throwable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 13 00:38:25 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5447
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
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
Blocks: 5402
--- Comment #0 from Don <clugdbug at yahoo.com.au> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list