Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Why not C++ style comments?
Home

[Freeciv-Dev] Re: Why not C++ style comments?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Why not C++ style comments?
From: Jules Bean <jules@xxxxxxxxxxxxxxx>
Date: Thu, 29 Nov 2001 16:50:04 +0000

On Thu, Nov 29, 2001 at 04:38:22PM +0100, Reinier Post wrote:
> On Thu, Nov 29, 2001 at 01:52:37AM -0800, Raahul Kumar wrote:
> > 
> > --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > 
> > I prefer the C++ style comments for one liners. For some reason, the current
> > Freeciv style does not allow it. There is no logical reason for it, all
> > versions
> > of gcc support c-style comments, and most current compilers work with it 
> > fine. 
> It's not standard C and some compilers don't allow it.

<pedant comment="sorry">

Yes it is.  The current C standard is "ISO/IEC 9899:1999 (E), as
amended by ISO/IEC 9899:1999/Cor.1:2001 (E)", commonly known as 'C99'.

C99 includes // comments.

Sadly (nay, ridiculously!) the standards group don't *seem* to put the 
standard online.  However, the GCC features table makes it clear
enough what's in it..

http://gcc.gnu.org/c99status.html

</pedant>

Jules


[Prev in Thread] Current Thread [Next in Thread]