Re: Is This Right?
Re: Is This Right?
- Subject: Re: Is This Right?
- From: Stefan Arentz <email@hidden>
- Date: Tue, 5 Jun 2001 22:17:28 +0200
On Tue, Jun 05, 2001 at 01:57:21PM -0400, 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];
Sure. Works great!
You can do this everywhere where it's legal to define a variable. But
be careful. You can be bitten by optimization or compiler specific
weirdness!
Does anyone know if there is a rule about the order of execution for
this? Is it always 'top to bottom', ie, same order as declared in the
source?
Stefan