• 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: Finlay Dobbie <email@hidden>
  • Date: Wed, 6 Jun 2001 15:53:17 +0100

On Tuesday, June 5, 2001, at 09:06 pm, David Remahl 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];

Yup, that is correct, but that has to be made in the initialization part of the function (before any non-declaring lines) to work in Obj-C.

hopefully this won't be the case when apple moves on to adopt the C99 standard in their compiler (make that if they do, and i hope they do :-))

-- Finlay


References: 
 >Re: Is This Right? (From: David Remahl <email@hidden>)

  • Prev by Date: Re: int question
  • Next by Date: Re: NSBrowser cell highlighting
  • Previous by thread: Re: Is This Right?
  • Next by thread: Re: Is This Right?
  • Index(es):
    • Date
    • Thread