Mailing Lists: Apple Mailing Lists

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

Re: const vs. static CFStringRefs



On 11/30/05 5:18 PM, Stevo Brock didst favor us with:

> I guess I was asking more along the lines of memory allocation in the
> compiled file.  I should have stated my question differently.  I'm
> guessing the "static" version is a single memory allocation that can
> be referenced multiple times.

Why are you guessing? There are two distinct meanings of static and both are
explained in any basic book on the language (C or C++). It's certainly not a
Carbon question.

> Does the "const" version end up being
> the same, or is it perhaps allocated every time it's referenced?

Still not a Carbon question, but why exactly do you need to know this?

> This all gets confusing in my head as I know that CFSTR is doing some
> behind-the-scenes stuff and I don't know what that is.

Why do you need to know? Maybe you should just ask what you want to know or
describe the problem you're trying to solve.

Larry

 _______________________________________________
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

References: 
 >Re: const vs. static CFStringRefs (From: Stevo Brock <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.