• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Variable scope/lifetime of class methods (concerns Threads)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Variable scope/lifetime of class methods (concerns Threads)
      • From: Ole Voß <email@hidden>
References: 
 >Re: Variable scope/lifetime of class methods (concerns Threads) (From: Ole Voß <email@hidden>)

  • Prev by Date: Re: Variable scope/lifetime of class methods (concerns Threads)
  • Next by Date: How do I find out if a process is running if I have the process Name?
  • Previous by thread: Re: Variable scope/lifetime of class methods (concerns Threads)
  • Next by thread: Re: Variable scope/lifetime of class methods (concerns Threads)
  • Index(es):
    • Date
    • Thread