[pedevel] Re: Style of constants?

  • From: Oliver Tappe <pedevel@xxxxxxxxxxxxxxx>
  • To: pedevel@xxxxxxxxxxxxx
  • Date: Sun, 15 May 2005 19:33:48 +0200

On 2005-05-15 at 18:19:29 [+0200], Axel Dörfler wrote:
> Rainer Riedl <mlist@xxxxxxxxx> wrote:
> > > #defines are usually using uppercase, in C++ there is often a "k" 
> > > prefix used instead, and since that's already used here, why not 
> > > continue to do so?
> > Sure, that's why I asked :-)
> > 
> > ok, then we agree to write them this way without underscores?!
> > 
> >     ktyp_ThisIsTheName
> > 
> > Gonna adjust my code then and also those with underscores inside that 
> > were 
> > already there
> 
> Well, that's my opinion at least, I think at least Oliver should agree 
> here, too :-)

Did anybody mention my name? >;o)

I second what Axel has said, real constants (i.e. not #defines) should be 
written with a k, followed by the name in mixed case.

So it should be (for example)
        kmsg_WhatMakesMeTick

cheers,
        Oliver

Other related posts: