• 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: const correctness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: const correctness


  • Subject: Re: const correctness
  • From: Scott Ribe <email@hidden>
  • Date: Sun, 18 Mar 2012 12:13:11 -0600

On Mar 18, 2012, at 12:01 PM, Luther Baker wrote:

> Obj-C and Cocoa don't support "const" because they are older?

Const showed up in C in around '89 or '90. Retrofitting const into large libraries that were designed without it is an absolute nightmare because of the cascading changes required. Objective-C now picks up C's support of const of course, but Cocoa doesn't use it, so it's not really useful. (And const goes nowhere near as deep as it does in C++, and so isn't useful for the same types of optimization tricks.)


--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

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: 
 >const correctness (From: Luther Baker <email@hidden>)
 >Re: const correctness (From: Jens Alfke <email@hidden>)
 >Re: const correctness (From: Luther Baker <email@hidden>)
 >Re: const correctness (From: Scott Ribe <email@hidden>)
 >Re: const correctness (From: Luther Baker <email@hidden>)

  • Prev by Date: Re: const correctness
  • Next by Date: Re: SMJobBless - how to start helper tool?
  • Previous by thread: Re: const correctness
  • Next by thread: Re: const correctness
  • Index(es):
    • Date
    • Thread