Name collision

The term "name collision" refers to the nomenclature problem that occurs in computer programs when the same variable name is used for different things in two separate areas that are joined, merged, or otherwise go from occupying separate namespaces to sharing one. As with the collision of other identifiers, it must be resolved in some way for the new software (such as a mashup) to work right. [1] Problems of name collision, and methods to avoid them, are a common issue in an introductory level analysis of computer languages, such as for C++.[1]

History

The term "name collision" has been used in computer science for more than three decades, when referring to names in various classification systems.[2]

Avoiding name collisions

There are several techniques for avoiding name collisions, including the use of:

Those are some of the tactics used to resolve the name collisions.

See also

References

  1. 1 2 3 "Getting Started" (lesson for C++), Brown University, Computer Science Dept., January 2000 (in text as "Jan 2000"), pages 5-6, webpage (PDF): CS-Brown-Cpp.
  2. "Name collision in multiple classification hierarchies", Portal ACM (Association for Computing Machinery), by J.L. Knudsen, 1988, webpage: Portal-ACM-607.


This article is issued from Wikipedia - version of the 8/10/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.