Name resolution (programming languages): Difference between revisions

Content deleted Content added
m Replaced outdated html codes with wikicodes.
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
Line 34:
 
==Name masking==
'''Masking''' occurs when the same identifier is used forfo different entities in overlapping lexical scopes. At the level of variables (rather than names), this is known as [[variable shadowing]]. An identifier I' (for variable X') masks an identifier I (for variable X) when two conditions are met
# I' has the same name as I
# I' is defined in a scope which is a subset of the scope of I