Re: Syntactic sugar
Re: Syntactic sugar
- Subject: Re: Syntactic sugar
- From: "Keith Ray" <email@hidden>
- Date: Tue, 5 Sep 2006 10:09:15 -0700
I wonder why the macros are not redefined to use @try etc. when the compiler
is set to enable that syntax.
On 9/4/06, Chris Hanson <email@hidden> wrote:
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
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
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