Re: //Comments
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>) |