site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 16.03.2010, at 19:40, Jens Alfke wrote:
Ideally C++ would have the same kind of exception-checking that Java does, so you could declare a function as not throwing any exception and have the compiler enforce that for you. But C++ doesn't work that way. So you just have to be careful to wrap all your entry points, including callbacks, in try/catch blocks.
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. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com