• 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
Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)


  • Subject: Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 23 Aug 2002 15:44:17 -0400

That is incorrect -- static variables and instance variables are, by definition, always initialized to zero.

b.bum

On Friday, August 23, 2002, at 01:20 PM, email@hidden wrote:
static id files = nil; // make the assigment because static will not
be niled automatically.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
      • From: Lance Bland <email@hidden>
  • Prev by Date: Re: Making a NSFormatter receive special keys
  • Next by Date: Implicit Declaration Warning
  • Previous by thread: Bill Cheesman on Keyed Archiving
  • Next by thread: Re: Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
  • Index(es):
    • Date
    • Thread