Re: const correctness
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