Naming conventions for static class members

Eric,

You brought up naming conventions in our convo, and mentioned the d_
prefix to class members.

After reading through the README.hacking file, I see there is a s_
convention from static
members in a class. Should these:

static const int D_PORT_TYPE_RX = 0
static const int D_PORT_TYPE_TX = 1;

become

static const int S_PORT_TYPE_RX ?

  • George

On Wed, Apr 11, 2007 at 08:48:09PM -0400, George N. wrote:

become

static const int S_PORT_TYPE_RX ?

  • George

For constants that aren’t externally visible, no prefix is needed.
Just all caps.