Each object has an Object Number (objnum), which is a unique number assigned to that object upon its creation. Object numbers cannot be changed after an object is created. When an object is destroyed, it's objnum is not re-used by the driver.
In ColdC an object number is designated with a hash mark ('#') follwed by
the object's number. For instance #23 refers to object
number 23.
An object can also have an Object Name assigned to it, which can be changed througout the life of the object. Object Name's are only unique to that object, while the object has the name. Once the name is changed the old name can be taken by another object. Object Names exist for practical functionality. It is easier to remember references which consist of alphabetic and numeric characters, compared to references which are simply numeric.
When the driver attempts to print out a reference to an object,
the Object Name will take precedence over an Object Number,
because the name is generally easier to remember and comprehend. Object
Name's are composed of alphabetic characters, numbers, and
the underscore character ('_'). In ColdC an object number is designated
with a dollar sign ('$'), followed by the name. For instance, if the
object #23 had the name object_23 assigned to it. It
would be formatted in ColdC as $object_23.
When the interpreter encounters an object name, it looks up the
number associated with that name in a table. If no object has been
assigned to that name, a ~namenf error is thrown; otherwise
the object name is equivalent to the object number.
Last Modified on Mar 2 1996
Copyright © 1995, 1996, Brandon Gillespie