• 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: defined but not used error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >defined but not used error (From: "John Love" <email@hidden>)
 >Re: defined but not used error (From: Jens Alfke <email@hidden>)
 >Re: defined but not used error (From: Sebastian Nowicki <email@hidden>)
 >Re: defined but not used error (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Just a simple general question...
  • Next by Date: Re: assignment in if clause (was: alternate pattern for object initializers)
  • Previous by thread: Re: defined but not used error
  • Next by thread: Re: defined but not used error
  • Index(es):
    • Date
    • Thread