Re: Syntactic sugar
Re: Syntactic sugar
- Subject: Re: Syntactic sugar
- From: Chris Hanson <email@hidden>
- Date: Mon, 4 Sep 2006 22:55:39 -0700
On Sep 4, 2006, at 9:59 PM, Andrew Farmer wrote:
* The Cocoa headers define a set of macros (NS_DURING et al) which
implement exception handling. However, they're now superseded by the
@synchronized keyword.
The old exception-handling macros are superseded by @try, @catch, and
@finally (as well as @throw), not @synchronized. @synchronized is
functionality that didn't exist under the old exception-handling
mechanism. All of the above were introduced in Mac OS X 10.3 Panther.
The old exception-handling macros also required extra work on the
part of developers to declare variables volatile, use the correct
return macros, etc. that use of the @try, @catch, and @finally
constructs will take care of for you since they're supported by the
compiler.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden