Re: Variable scope/lifetime of class methods (concerns Threads)
Re: Variable scope/lifetime of class methods (concerns Threads)
- Subject: Re: Variable scope/lifetime of class methods (concerns Threads)
- From: Keary Suska <email@hidden>
- Date: Thu, 18 May 2006 09:29:00 -0600
on 5/18/06 8:47 AM, email@hidden purportedly said:
> But what happens to the variables within a class method? What is their
> scope?
> And what do you call them? :-))
Variables declared in class methods are local variables. There is no
difference in local variable handling between class and instance methods,
including scope, initialization, etc. Remember that ObjC is C--all methods
essentially break down to standard C functions. The different types of
methods (class/instance) have more to do with OOP style and calling
semantics rather than anything fundamental.
This is essentially what repliers have been saying but in a different way,
e.g. no class variables etc.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden