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
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to