Name resolution |
In computer science, name resolution (also called name lookup) is the process of finding the entity that an identifier used in a certain context refers to.
= Name resolution in computer languages =
Expressions in computer languages can contain identifiers. The semantics of such expressions depend on the entities that the identifiers refer to. The Algorithm that determines what an identifier in a given context refers to is part of the language definition.
The complexity of these algorithms is influenced by the sophistication of the language. For example, name resolution in assembly language usually involves only a single simple Associative_array, while name resolution in C plus plus is extremely complicated as it involves:
== Static versus dynamic ==
In programming languages, name resolution can be performed either at compile time or at Runtime. The former is called static name resolution, the latter is called dynamic name resolution.
Examples of programming languages that use static name resolution include C programming language, C++, Java programming language, and Pascal programming language. Examples of programming languages that use dynamic name resolution include Lisp programming language, Perl programming language, and Python programming language.
= Name resolution in computer networks =
In computer networks, name resolution is used to find a lower level address (such as an IP address) that corresponds to a given higher level address (such as a hostname). See Domain Name System, OSI Model.
= See also =
|
|