Re: Coding Style

Mark I Manning IV (mark4@purplecoder.com)
Mon, 22 Jan 2001 17:28:18 -0500


Ralf Baechle wrote:
>
> On Sun, Jan 21, 2001 at 03:00:05AM +0100, Matthias Andree wrote:
>
> > > int function(int x)
> > > {
> > > body of function // correctly braced and commented :)
> > > }
> >
> > So you claim // is a correct C comment? Poor guy :)
>
> Current drafts of C9X implement // comments; virtually every halfway
> current C compiler I've used during the last years implements it.
>
> Ralf
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

Any plane vanilla C compiler that doesnt support // as a coment is
probably at least 10 years old :) His point wasnt that it wouldnt work,
he was pointing out that this cmmenting style is frowned upon in C.

It is alot neater tho :P~

// even for multi line comments
// no visual clutter over there -->
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/