Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Scope (computer science)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Use == Scope is an important component of [[Name resolution (programming languages)|name resolution]],{{efn|"Name resolution" and "name binding" are largely synonymous; narrowly speaking "resolution" determines to which name a particular use of a name refers, without associating it with any meaning, as in [[higher-order abstract syntax]], while "binding" associates the name with an actual meaning. In practice the terms are used interchangeably.}} which is in turn fundamental to [[Formal semantics of programming languages|language semantics]]. Name resolution (including scope) varies between programming languages, and within a programming language, varies by type of entity; the rules for scope are called '''scope rules''' (or '''scoping rules'''). Together with [[namespaces]], scope rules are crucial in [[modular programming]], so a change in one part of the program does not break an unrelated part.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)