4.40. 4.40 Namespaces
One really nice feature of records and unions is that the field names are local to a given record or union declaration. That is, you can reuse field names in different records or unions. This is an important feature of HLA because it helps avoid namespace pollution. Namespace pollution occurs when you use up all the "good" names within the current scope and you have to start creating nondescriptive names for some object because you've already used the most appropriate name for something else. Because you can reuse names in different record/union definitions (and you can even reuse those names outside of the record/union definitions) you don't have to dream up new names for the objects that have less meaning. We use the term ...
Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.