Re: defined but not used error
Re: defined but not used error
- Subject: Re: defined but not used error
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 26 May 2008 14:44:58 -0400
On Mon, May 26, 2008 at 2:17 PM, Jens Alfke <email@hidden> wrote:
> I don't know why AppKit doesn't use const. Without it, the symbol is just an
> ordinary global variable and could be accidentally reassigned another value,
> leading to weird and hard-to-debug errors.
I always wondered the same thing, and whether consequently it was a
bad idea to define my constants as, well, constant. Any insight?
--Kyle Sluder
_______________________________________________
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