Re: defined but not used error
Re: defined but not used error
- Subject: Re: defined but not used error
- From: Scott Ribe <email@hidden>
- Date: Mon, 26 May 2008 17:40:27 -0500
- Thread-topic: defined but not used error
> Constness is one of those things that was added to C in later versions. Much
> of the NeXT-derived stuff simply predates the availability of const. Even
> newer sample code often simply reflects habits that were formed before const
> was available.
And, duh, I forgot to mention this: adding const to a large existing library
is a very big pain, because of the dependencies. It's not hard to enforce
constness where appropriate from the beginning, and correct the occasional
mistake. But when adding const there can be so many dependencies that it's
enough to drive a person insane.
--
Scott Ribe
email@hidden
http://www.killerbytes.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