Next: Structure Implementation, Previous: Structure Usage, Up: Structures
The field names that come to (my) mind are often quite generic, and,
if used, would cause frequent name clashes. E.g., many structures
probably contain a
counter field. The structure names
that come to (my) mind are often also the logical choice for the names
of words that create such a structure.
Therefore, I have adopted the following naming conventions:
-field, where struct is the basic name of the structure, and field is the basic name of the field. You can think of field words as converting the (address of the) structure into the (address of the) field.
%, where struct is the basic name of the structure.
This naming convention does not work that well for fields of extended
structures; e.g., the integer list structure has a field
intlist-int, but has