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: John Haager <email@hidden>
- Date: Sat, 25 May 2002 01:39:54 -0700
On Friday, May 24, 2002, at 11:33 PM, Nathan Zamecnik wrote:
On 5/24/02 11:43 PM, "Nathan Day" <email@hidden> wrote:
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.
I'm happy for that then. I started with C++ so I'm used to being able
to
declare them anywhere. Thanx for the info.
If you're that hooked on C++, then switch to Obj-C++. Just give all
your files an extension of .M or .mm, and the compiler will treat them
as Obj-C++ files. You get all the Objective C syntax plus all the C++
syntax. Just be careful mixing C++ and Obj-C objects.
One of my fellow programmers makes all of his source files .M just for
the sole fact that he can declare his vars anywhere in the source.
-- NAteZ
_______________________________________________
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.
-> John Haager <-
_______________________________________________
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.