Re: Help with recursive includes
Re: Help with recursive includes
- Subject: Re: Help with recursive includes
- From: Michael Ash <email@hidden>
- Date: Sat, 21 Feb 2009 19:39:46 -0500
On Sat, Feb 21, 2009 at 7:11 PM, Kiel Gillard <email@hidden> wrote:
> Towards the start of TMPSTLocalStore.m, you're declaring a static pointer
> within the @implementation. I didn't think you could do this, I thought you
> could only declare a static variable outside of the @implementation in the
> .m file.
Sure you can. All @implementation does is allow you to declare ObjC
methods. It has absolutely no effect on anything else, which has the
exact same meaning inside the @implementation block as outside.
Whether you put your global variables, functions, etc. inside or
outside is entirely a matter of taste.
(This is not strictly true. One difference is that functions inside
@implementation are allowed to access the private ivars of an object
of the class whose @implementation it's inside. But this is rarely
useful and in any case doesn't apply here.)
Mike
_______________________________________________
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