Live briefing
Everything about Variable shadowing
Variable masking one with the same name
In computer programming, variable shadowing occurs when a variable declared within a certain scope has the same name as a variable declared in an outer scope. At the level of identifiers, this is known as name masking. This outer variable is said to be shadowed by the inner variable, while the inner identifier is said to mask the outer identifier. This can lead to confusion, as it may be unclear which variable subsequent uses of the shadowed variable name refer to, which depends on the name resolution rules of the language. Wikipedia →
🧭 Start here: a 6-step reading path
- Read the overview: Variable shadowingA 5-minute orientation
- Pick up a classic book: Java software solutionsThe most-reprinted book on the subject
- Read the landmark paper: Variable Outer Disk Shadowing around the Dipper Star RXJ1604.3–2130*Cited 77 times
- Go sideways: Closure (computer programming)A closely related topic
- Go sideways: Higher-order functionA closely related topic
📖 Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
Variable Outer Disk Shadowing around the Dipper Star RXJ1604.3–2130*
The HD 163296 Circumstellar Disk in Scattered Light: Evidence of Time‐Variable Self‐Shadowing
Repeat what after whom? Exploring variable selectivity in a cross-dialectal shadowing task
Scaling variable for nuclear shadowing in deep-inelastic scattering
Shadowing and Blocking Effect Optimization for a Variable Geometry Heliostat Field
Mobile Radio Power Distribution in Shadowing and Variable Range
Rigorous numerics for fast-slow systems with one-dimensional slow variable: topological shadowing approach
Nuclear Shadowing in Very Small Bjorken Variable Region
📚 Books worth reading
Java software solutionsLewis, John, John E. Lewis Ph. D. · 1997
Cartesian meditationsEdmund Husserl, Dorion Cairns · 1960
The personal MBAJosh Kaufman · 2010
The Cornhill MagazineGeorge Murray Smith · 1860
Learning PHP, MySQL & JavaScriptRobin Nixon · 2009
Treaty Occupationay ToxicologySuelen Queiroz · 2010
The UNIX operating systemChristian, Kaare, Kaare Christian · 1983
Following the waterDavid M. Carroll · 2009
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
🔗 Related topics
- Closure (computer programming) In programming languages, a closure, also lexical closure or function closure, is a technique for implementing lexically scoped name binding in a language…
- Higher-order function In mathematics and computer science, a higher-order function (HOF) is a function that does at least one of the following: takes one or more functions as…
- Examples of anonymous functions In computer programming, an anonymous function (function literal, lambda function, or block) is a function definition that is not bound to an identifier…
- Destructor (computer programming) In object-oriented programming, a destructor (sometimes abbreviated dtor) is a method which is invoked mechanically just before the memory of the object…
- Non-local variable In programming language theory, a non-local variable is a variable that is not defined in the local scope. While the term can refer to global variables…
- Function object In computer programming, a function object is a construct allowing an object to be invoked or called as if it were an ordinary function, usually with the…
- Entry point In computer programming, an entry point is the place in a program where the execution of a program begins, and where the program has access to command…
- String interpolation In computer programming, string interpolation (or variable interpolation, variable substitution, or variable expansion) is the process of evaluating a…