Knowledge

Name collision

Source 📝

221: 78:
The term "name collision" has been used in computer science for more than three decades, when referring to names in various classification systems.
291: 107:- putting unique characters before the names so that the names differ and further name collisions are unlikely to happen by accident. 262: 62:) to work right. Problems of name collision, and methods to avoid them, are a common issue in an introductory level analysis of 281: 198: 42:
name is used for different things in two separate areas that are joined, merged, or otherwise go from occupying separate
59: 95:- to qualify each name within a separate name group, so that the totally qualified names differ from each other. 20: 255: 286: 39: 248: 184:, Computer Science Dept., January 2000 (in text as "Jan 2000"), pages 5-6, webpage (PDF): 148: 228: 27: 101:- to change the name of one item (typically the one used less often) into some other name. 8: 236: 63: 181: 128: 117: 86:
There are several techniques for avoiding name collisions, including the use of:
220: 185: 232: 47: 202: 275: 123: 35: 197:"Name collision in multiple classification hierarchies", Portal ACM ( 51: 91: 43: 16:
Computing error resulting from the use of identically-named variables
55: 177: 67: 273: 120:, variable data items that are local to a module 54:, it must be resolved in some way for the new 256: 81: 263: 249: 201:), by J.L. Knudsen, 1988, webpage: 274: 172: 170: 168: 215: 199:Association for Computing Machinery 191: 165: 13: 38:problem that occurs when the same 14: 303: 292:Programming language topic stubs 219: 149:hash table#Collision_resolution 176:"Getting Started" (lesson for 141: 1: 158: 235:. You can help Knowledge by 46:to sharing one. As with the 7: 282:Programming language design 111: 10: 308: 214: 73: 18: 134: 82:Avoiding name collisions 231:-related article is a 229:programming-language 28:computer programming 19:For other uses, see 287:Information theory 64:computer languages 244: 243: 299: 265: 258: 251: 223: 216: 206: 195: 189: 182:Brown University 174: 152: 145: 129:Naming collision 307: 306: 302: 301: 300: 298: 297: 296: 272: 271: 270: 269: 212: 210: 209: 196: 192: 175: 166: 161: 156: 155: 146: 142: 137: 118:local variables 114: 84: 76: 24: 17: 12: 11: 5: 305: 295: 294: 289: 284: 268: 267: 260: 253: 245: 242: 241: 224: 208: 207: 203:Portal-ACM-607 190: 163: 162: 160: 157: 154: 153: 139: 138: 136: 133: 132: 131: 126: 121: 113: 110: 109: 108: 102: 96: 83: 80: 75: 72: 66:, such as for 32:name collision 15: 9: 6: 4: 3: 2: 304: 293: 290: 288: 285: 283: 280: 279: 277: 266: 261: 259: 254: 252: 247: 246: 240: 238: 234: 230: 225: 222: 218: 217: 213: 204: 200: 194: 187: 183: 179: 173: 171: 169: 164: 150: 144: 140: 130: 127: 125: 124:Name mangling 122: 119: 116: 115: 106: 103: 100: 97: 94: 93: 89: 88: 87: 79: 71: 69: 65: 61: 57: 53: 49: 45: 41: 37: 33: 29: 22: 21:Name conflict 237:expanding it 226: 211: 193: 186:CS-Brown-Cpp 143: 104: 98: 90: 85: 77: 36:nomenclature 31: 25: 151:for details 58:(such as a 52:identifiers 276:Categories 159:References 92:namespaces 44:namespaces 105:prefixing 50:of other 48:collision 112:See also 99:renaming 56:software 40:variable 74:History 34:is the 60:mashup 227:This 135:Notes 233:stub 147:see 30:, a 180:), 178:C++ 68:C++ 26:In 278:: 167:^ 70:. 264:e 257:t 250:v 239:. 205:. 188:. 23:.

Index

Name conflict
computer programming
nomenclature
variable
namespaces
collision
identifiers
software
mashup
computer languages
C++
namespaces
local variables
Name mangling
Naming collision
hash table#Collision_resolution



C++
Brown University
CS-Brown-Cpp
Association for Computing Machinery
Portal-ACM-607
Stub icon
programming-language
stub
expanding it
v
t

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.