What is lexical scoping (static scoping)? - Definition from WhatIs.com

Definition

lexical scoping (static scoping)

Part of the Programming glossary:

Lexical scoping (sometimes known as static scoping ) is a convention used with many programming languages that sets the scope (range of functionality) of a variable so that it may only be called (referenced) from within the block of code in which it is defined. The scope is determined when the code is compiled. A variable declared in this fashion is sometimes called a private variable.

The opposite approach is known as dynamic scoping . Dynamic scoping creates variables that can be called from outside the block of code in which they are defined. A variable declared in this fashion is sometimes called a public variable.

This was last updated in March 2011
Posted by: Margaret Rouse

Related Terms

Definitions

  • rapid mobile app development (RMAD)

    - Rapid mobile app development (RMAD) is the use of code-free programming tools to speed the process of creating applications for mobile platforms. (WhatIs.com)

  • deprecated

    - In dictionaries, deprecated is a term used to indicate a pronunciation or usage that is acknowledged but discouraged. (WhatIs.com)

  • security by design

    - Security by design is an approach to software and hardware development that seeks to make systems as free of vulnerabilities and impervious to attack as possible through such measures as continuous... (WhatIs.com)

Glossaries

  • Programming

    - Terms related to software programming, including definitions about programming languages and words and phrases about software design, coding, testing and debugging.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question About lexical scoping (static scoping)Powered by ITKnowledgeExchange.com

Get answers from your peers on your most technical challenges

Tech TalkComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.