• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Syntactic sugar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntactic sugar


  • Subject: Re: Syntactic sugar
  • From: John Stiles <email@hidden>
  • Date: Tue, 5 Sep 2006 10:14:56 -0700

There may not be an easy way for the header to know whether you have enabled that compiler setting or not.


On Sep 5, 2006, at 10:09 AM, Keith Ray wrote:

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:
40gmail.com


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:
40blizzard.com


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Syntactic sugar
      • From: Daniel Jalkut <email@hidden>
References: 
 >Syntactic sugar (From: CoLo0LoGo <email@hidden>)
 >Re: Syntactic sugar (From: Andrew Farmer <email@hidden>)
 >Re: Syntactic sugar (From: Chris Hanson <email@hidden>)
 >Re: Syntactic sugar (From: "Keith Ray" <email@hidden>)

  • Prev by Date: Re: Syntactic sugar
  • Next by Date: RE: Stream programming: premature 'end encountered' event [sorry for repost]
  • Previous by thread: Re: Syntactic sugar
  • Next by thread: Re: Syntactic sugar
  • Index(es):
    • Date
    • Thread