[pedevel] Re: Style of constants?

  • From: Oliver Tappe <pedevel@xxxxxxxxxxxxxxx>
  • To: pedevel@xxxxxxxxxxxxx
  • Date: Tue, 17 May 2005 23:22:26 +0200

On 2005-05-17 at 22:03:23 [+0200], Rainer Riedl wrote:
> > Ah, freaking heck, I'm running out of alternatives >;o) so let's stay 
> > with the #defines and just use consistent names (capitalized)...
> 
> So how, in a ideal world, should the following examples look like then?! 
> :-)
> 
>     #define msg_OpenSelected
>     #define ri_BND_FILE_MENU
>     #define kmsg_Extend_Selection_with_Character_Left

I suggest leaving the type separate, thus yielding:

#define msg_OpenSelected
#define ri_BndFileMenu
#define kmsg_ExtendSelectionWithCharacterLeft

cheers,
        Oliver

Other related posts: