Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

const vs. static CFStringRefs



What would be the difference between declaring CFStringRefs const vs. static in a single source file? As in...

const	CFStringRef	kStringRef1 = CFSTR("string1");

vs.

static	CFStringRef	sStringRef2 = CFSTR("string2");

Is there any difference? Is there any difference if they are used once or more than once in the file?

Curious...

-Stevo Brock
 Monkey Tools
 www.monkey-tools.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.