you're right.

I do make the assumption that only sane exceptions are thrown...meaning subclasses of NSException & std::exception. Certainly any code that I control only throws proper exceptions. For C++ functions, I use exception specifiers. so, if any function throws the wrong type of exception, it fails very early in the stack unwinding so that I have a good idea of where the problem is.



On Jun 28, 2009, at 7:23 PM, Chris Idou wrote:






________________________________
From: James Gregurich <[email protected]>

3) I don't allow exceptions of any kind to propagate into alien code....particularly the cocoa runtime.



Given that Objective-C doesn't have declared exceptions (like Java), it seems more likely that you "hope" exceptions are not propagated into alien code.

Unless that is you are in the unusual situation that you use no third party libraries, or you have full and perfect knowledge of where and when they might throw an exception.


     Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
Show me how: http://au.mobile.yahoo.com/mail
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/bayoubengalml%40mac.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to