• 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: Is This Right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is This Right?


  • Subject: Re: Is This Right?
  • From: Michael Rogers <email@hidden>
  • Date: Tue, 5 Jun 2001 14:54:30 -0500

On Tuesday, June 5, 2001, at 12:57 PM, Brian Howard wrote:

Do I understand this right? Can these two lines of code:

NSMutableArray *myArray;
myArray = [[NSMutableArray alloc] init];

be combined thus:

NSMutableArray *myArray = [[NSMutableArray alloc] init];


Yes, there's no problem with declaring and initializing a variable in a single statement.

Michael
------------------------------
Dr. Michael P. Rogers
Mathematics & Computer Science, Millikin University
email@hidden
http://math.millikin.edu/mprogers
217-424-6327(W) 309-828-8655 (H) 309-825-6454(C)


References: 
 >Is This Right? (From: Brian Howard <email@hidden>)

  • Prev by Date: Re: [NSApp setDelegate]
  • Next by Date: Re: [NSApp setDelegate]
  • Previous by thread: Is This Right?
  • Next by thread: Re: Is This Right?
  • Index(es):
    • Date
    • Thread