Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- Subject: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- From: Sander Stoks <email@hidden>
- Date: Mon, 28 Sep 2009 20:50:35 +0200
On Sep 28, 2009, at 8:38 PM, Kyle Sluder wrote:
C++ code uses exceptions as a control-flow
mechanism, whereas Cocoa reserves them for programmer error.
That is by no means dictated by C++. In fact, it's quite common to
reserve exceptions for "exceptional" cases in C++ as well. C++
exceptions can be free as long as they aren't thrown, but the cost if
they are can be substantial.
Regards,
Sander
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden