// // Symbol -- object defined as a distinct global id constant // @deftype SymbolCREATING + create: aZone setName: (char *)name; - (void) setName: (char *)name; @end
Ordinarily, a symbol is created with its character string name matching the global id constant to which it is assigned. These global program constants can then provide a minimal level of self documentation as objects. Subtypes of Symbol can extend the base of a named, global id constant to establish further components of a global, constant definition.
CREATING + create: aZone setName: (char *)name;create:setName: is a combination message defined as a caller convenience. See combination messages for a summary of conventions on combination messages.
CREATING - (void) setName: (char *)name;The Name option may be set only at create time. Its value is a null-terminated character string that remains fixed for the life of the object. The inherited getName message returns this name from a created instance.