[Freeciv-Dev] Re: Why not C++ style comments?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] Re: Tech cost patch v3, (continued)
- [Freeciv-Dev] Re: Tech cost patch v3, Raimar Falke, 2001/11/28
- [Freeciv-Dev] Why not C++ style comments?, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Raimar Falke, 2001/11/29
- [Freeciv-Dev] C/C++ Compilers used with Freeciv, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?,
Jules Bean <=
- [Freeciv-Dev] Say Yes to C++ style comments, Raahul Kumar, 2001/11/30
- [Freeciv-Dev] Re: Say Yes to C++ style comments, Daniel Sjölie, 2001/11/30
- [Freeciv-Dev] Re: Say Yes to C++ style comments, Reinier Post, 2001/11/30
[Freeciv-Dev] Re: Tech cost patch, Gregory Berkolaiko, 2001/11/28
|
|