Re: defined but not used error
Re: defined but not used error
- Subject: Re: defined but not used error
- From: Jens Alfke <email@hidden>
- Date: Mon, 26 May 2008 11:17:10 -0700
On 26 May '08, at 11:09 AM, Sebastian Nowicki wrote:
Is this usually how notification names are defined? I was wondering
how people did it, so I search using google's code search and found
a few examples of that method, but they weren't defined const.
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.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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