Re: c++ exceptions
Re: c++ exceptions
- Subject: Re: c++ exceptions
- From: Jens Alfke <email@hidden>
- Date: Mon, 5 Apr 2010 16:38:08 -0700
On Apr 5, 2010, at 4:31 PM, Uli Kusterer wrote:
C++ supports throw specifiers, too, for both functions and methods.
It's just that the defaults are different: If you don't specify a
throw specifier, it will let you throw *any* exception.
But IIRC, the specifiers are enforced at runtime, not compile time. So
if I declare a function as "throw ()", i.e. not allowed to throw
anything, it's still allowed to call functions that can throw
exceptions. It's just that if an exception actually gets thrown, it'll
cause the program to abort.
This is IMHO not nearly as useful as detecting exception violations at
compile time.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden