Name resolution (programming languages): Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
m Undid edits by 1.46.136.119 (talk) to last revision by Ira Leviton: nonconstructive edits
Line 34:
 
==Name masking==
'''Masking''' occurs when the same identifier is used fofor 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