• 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: //Comments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: //Comments


  • Subject: Re: //Comments
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 13 Jan 2009 16:48:20 -0800

On Tue, Jan 13, 2009 at 10:36 AM, Gil Dawson <email@hidden> wrote:
> I notice that some programs use // to begin comments.  I tried them using
> the C compiler that comes with XCode Version 2.5.  They seem to work in some
> places but not in others.
>
> I didn't find the rules for this kind of comment in the K&R Second Edition*
> that I have.
>
> Where might I find the rules for this kind of comment?  Could I expect
> someone else's compiler to respect them?

To cut thru some of detail in the responses to your question so far...

A compiler that supports C99 will support this comment style for C
code (or Objective-C). You can enable C99 using Xcode build setting or
when calling gcc.

A compiler that supports C++ will support this comment style (or
Objective-C++ if the compiler also supports the later).

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >//Comments (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: //Comments
  • Next by Date: Re: Xcode Debugger: Cannot Step Into a Method in a x86_64 architecture build
  • Previous by thread: Re: //Comments
  • Next by thread: Xcode Debugger: Cannot Step Into a Method in a x86_64 architecture build
  • Index(es):
    • Date
    • Thread