next up previous contents
Next: Global function names Up: Naming conventions Previous: Class member function names   Contents

Global variable names

The names of global variables in VMD follow the same rules as for variables which are members of a particular class. It is recommended to use one of the following suggestions when naming a global variable:

  1. Choose a single-word name, and use all lower case.
  2. Choose a name similar to the class name of the variable, and prepend ``vmd'' to the name.
  3. If it is assured there should be only one instance of a particular class, and the instance should be global, choose a name identical to the base class of the variable but with the first letter in lower case.