Seven Low-Cost Ways to Improve Legacy Code
Subject:   Enums and "Constant Object"
Date:   2004-10-28 09:20:11
From:   Robert Simmons Jr. (Kraythe)
Response to: Enums and "Constant Object"

"In programming, a constant is a value that never changes. The other type of values that programs use is variables, symbols that can represent different values throughout the course of a program."[1]

Since these objects are alocated at initialization and never change, they are constants.

As for the terms for them, its a matter of splitting of irrelevant hairs. The importance is in the concept, not the label. Call them Freds for all I care.



1 to 1 of 1
  1. Enums and "Constant Object"
    2004-10-28 09:30:40  dubwai [View]

    • Enums and "Constant Object"
      2004-10-28 10:02:27  Robert Simmons, Jr. | O'Reilly Author [View]

      • Enums and "Constant Object"
        2004-10-28 13:41:07  dubwai [View]

1 to 1 of 1