• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C99 complience
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >C99 complience (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: Strings
  • Next by Date: Problem with NSComboBox and Formatter
  • Previous by thread: Re: C99 complience
  • Next by thread: Re: C99 complience
  • Index(es):
    • Date
    • Thread