• 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: Xcode 4.1 GM exception raised in PDFkit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 4.1 GM exception raised in PDFkit


  • Subject: Re: Xcode 4.1 GM exception raised in PDFkit
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Mon, 01 Aug 2011 16:30:09 -0700

On Aug 1, 2011, at 2:49 PM, Scott Ribe wrote:

On Aug 1, 2011, at 3:34 PM, Dave Keck wrote:

This is a C++ exception, which are often used as normal flow control
mechanisms.

Not in Apple's libraries they're not--not to mention that ***every*** reference I've ever read specifically recommends against using exceptions for normal flow control, and every C++ code base I've ever dealt with followed that recommendation.

I agree -- especially with "zero-cost exceptions," setting up an exception handling block is the "zero-cost" part. It is when throwing an exception that the exception handling becomes extremely costly.

Don't use C++ exceptions for normal flow control, only for cases where there is *no* other means of handling the error (ex: the directory you've been told to iterate has been deleted).

-- 
Glenn L. Austin, Computer Wizard and Race Car Driver         <><
<http://www.austin-soft.com>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 4.1 GM exception raised in PDFkit
      • From: Scott Ribe <email@hidden>
References: 
 >Xcode 4.1 GM exception raised in PDFkit (From: Martin Hewitson <email@hidden>)
 >Re: Xcode 4.1 GM exception raised in PDFkit (From: Chris Idou <email@hidden>)
 >Re: Xcode 4.1 GM exception raised in PDFkit (From: Martin Hewitson <email@hidden>)
 >Re: Xcode 4.1 GM exception raised in PDFkit (From: Dave Keck <email@hidden>)
 >Re: Xcode 4.1 GM exception raised in PDFkit (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Project converted from Snow Leopard to Lion; sudden multiple warnings.
  • Next by Date: Re: Xcode 4.1 GM exception raised in PDFkit
  • Previous by thread: Re: Xcode 4.1 GM exception raised in PDFkit
  • Next by thread: Re: Xcode 4.1 GM exception raised in PDFkit
  • Index(es):
    • Date
    • Thread