Re: C99 complience
Re: C99 complience
- Subject: Re: C99 complience
- From: Ben Jansen <email@hidden>
- Date: Tue, 12 Feb 2002 23:12:21 -0800
IIRC, in normal C you have to declare all variables at the start of the
function. it's the same way for ObjC.
To declare variables anywhere, you'll need to use ObjC++ (.mm
extension), since C++ allows it.
- Ben
On Tuesday, February 12, 2002, at 10:11 PM, Wade Tregaskis wrote:
I randomly stumbled across a C99 compliance failing by trying to do
"for(int x = y;...)". Am I correct in assuming that I should be able
to declare variables for the first time in for loops in this way [under
C99], and that OS X's default version of [g]cc doesn't support this?
What other C99 features are currently unsupported, out of curiosity?
_______________________________________________
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.
_______________________________________________
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.