Related articles |
---|
Compilers that do implement Exception Specifications holzschneider@rotobee.com (Philipp Holzschneider) (2003-10-04) |
From: | "Philipp Holzschneider" <holzschneider@rotobee.com> |
Newsgroups: | comp.compilers |
Date: | 4 Oct 2003 14:37:12 -0400 |
Organization: | Compilers Central |
Keywords: | errors, question |
Posted-Date: | 04 Oct 2003 14:37:12 EDT |
Are there any available compilers around that strictly implement the
mentioned "Exception Specification" feature??
where the following compiles
void func() { throw A(); };
void gunc() throw(A,B) { throw A(); };
----
void thrower() throw(A) { throw A(); };
void passer() throws(A) { thrower(); };
void catcher() throws() { try { passer() } catch ( A ) {}; };
while this would not compile
void func() throw() { throw A(); };
void gunc() throw(C,D) { throw A(); };
----
void thrower() throw(A) { throw A(); };
void passer() throw(B) { thrower(); };
void catcher() throw() { passer(); };
thx in advance!
--------------------------
Philipp Holzschneider
Rotobee Realtime 3D GmbH
--------------------------
Return to the
comp.compilers page.
Search the
comp.compilers archives again.