[pedevel] Re: Style of constants?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: pedevel@xxxxxxxxxxxxx
  • Date: Sun, 15 May 2005 17:21:24 +0200 CEST

Rainer Riedl <riedl@xxxxxxxxx> wrote:
> as I'm in the process of adding resource ids and I wonder how these 
> defines 
> should look. There are some examples in KeyBindings.h and PMessages.h 
> but 
> not all are consistent. Shouldn't those with underscores written like 
> the 
> others:
>    kmsg_Extend_Selection_to_End_of_Page
> -> kmsg_ExtendSelectionToEndOfPage

+1

> Another thing. Isn't it common to write constants in uppercase?!
> 
> -> kmsg_EXTEND_SELECTION_TO_END_OF_PAGE
> -> msg_NOTHING

-1 :-)
#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?

Bye,
   Axel.


Other related posts: