Re: Why can't I introduce new variables after init stage?
Re: Why can't I introduce new variables after init stage?
- Subject: Re: Why can't I introduce new variables after init stage?
- From: Nathan Day <email@hidden>
- Date: Sat, 25 May 2002 14:13:23 +0930
Objective-c is an extension of c, pre ANSII c99 only allows declaration
of local variable at the beginning of a block, I think this will change
with Jaguar since it will have gcc 3.0 and I think this will implement a
lot of ANSII c99 specifications.
On Saturday, May 25, 2002, at 02:04 PM, Hisaoki Nishida wrote:
For reason I am unaware of, whenever I want to introduce temporary
variables in my code I get an error saying 'parse error'. It won't even
let me introduce variables like i for my loops!
I have to go up to the init stage where, prior to anything else
variables are declared, and I have to declare it there. Using Obj-C
with Cocoa.
Can someone tell me why?
_______________________________________________
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.