Re: C99 complience
Re: C99 complience
- Subject: Re: C99 complience
- From: Ondra Cada <email@hidden>
- Date: Wed, 13 Feb 2002 15:04:34 +0100
Wade,
>
>>>>> Wade Tregaskis (WT) wrote at Wed, 13 Feb 2002 17:11:31 +1100:
WT> I randomly stumbled across a C99 compliance failing by trying to do
WT> "for(int x = y;...)". Am I correct in assuming that I should be able to
WT> declare variables for the first time in for loops in this way [under
WT> C99] and that OS X's default version of [g]cc doesn't support this?
Not in C or ObjC mode (since the GCC we have is AFAIK considerably older
than C99); you can use ObjC++ though, which supports that as a C++ feature.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.