• 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: 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.

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

  • Prev by Date: Re: Strings
  • Next by Date: Re: Strings
  • Previous by thread: C99 complience
  • Next by thread: Re: C99 complience
  • Index(es):
    • Date
    • Thread