Re: Is This Right?
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