• 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: GC pros and cons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC pros and cons


  • Subject: Re: GC pros and cons
  • From: James Gregurich <email@hidden>
  • Date: Mon, 29 Jun 2009 00:38:20 -0700

you're right.

I do make the assumption that only sane exceptions are thrown...meaning subclasses of NSException & std::exception. Certainly any code that I control only throws proper exceptions. For C++ functions, I use exception specifiers. so, if any function throws the wrong type of exception, it fails very early in the stack unwinding so that I have a good idea of where the problem is.



On Jun 28, 2009, at 7:23 PM, Chris Idou wrote:






________________________________ From: James Gregurich <email@hidden>

3) I don't allow exceptions of any kind to propagate into alien code....particularly the cocoa runtime.



Given that Objective-C doesn't have declared exceptions (like Java), it seems more likely that you "hope" exceptions are not propagated into alien code.


Unless that is you are in the unusual situation that you use no third party libraries, or you have full and perfect knowledge of where and when they might throw an exception.


Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail _______________________________________________

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

_______________________________________________

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


References: 
 >Re: GC pros and cons (From: James Gregurich <email@hidden>)
 >Re: GC pros and cons (From: Michael Ash <email@hidden>)
 >Re: GC pros and cons (From: James Gregurich <email@hidden>)
 >Re: GC pros and cons (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: NSRuleEditor
  • Next by Date: Re: Force NSTextField to update (and transform)
  • Previous by thread: Re: GC pros and cons
  • Next by thread: Re: GC pros and cons
  • Index(es):
    • Date
    • Thread