[Next] [Prev] [Up] [Top]

6.0 Style

Constants


6.3.1 Constants begin with a "k" (R)

Constants should have their name begin with a lowercase "k". Note that attribute constant variable names begin with a "kan".

Example:

const char* kanValue = "hello";

const int kBucketSize = 10;

6.3.2 Enums always begin with "e" (R)

Enum type names should begin with a lowercase "e". The values of the enum usually begin with one or more lowercase letters based on the enum type name.

Example:

enum eRasterOp { roInvert, roReplace, roOverlay };


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.