Skip to content
EntityQ1034415· pop 25· linked from 301 articles

Also known as lexical scope, context, variable scope, programming scope, scope of a name, scope of a variable

计算机科学概念

In the Vinony graph

Vinony's link graph records 301 inbound references to 作用域, and connects out to execution, JavaScript and stack.

Vinony files it under Programming language comparisons and Programming language concepts.

Vinony links it to 25 Wikipedia language editions.

Wikidata facts

Part of
run time
Show 2 more facts
Sources (3)

via Wikidata · CC0

Article · 中文

在電腦程式設計中,作用域(scope,或譯作有效範圍)是名字(name)与实体(entity)的绑定(binding)保持有效的那部分计算机程序。不同的编程语言可能有不同的作用域和。而同一语言内也可能存在多种作用域,随实体的类型变化而不同。作用域类别影響變量的方式,根據語言使用靜態作用域還是動態作用域变量的取值可能会有不同的結果。 * 包含标识符的宣告或定義; * 包含語句和/或,定義或部分關於可執行的演算法; * 巢狀嵌套或被巢狀嵌套。 命名空間是一種作用域,使用作用域的封裝性質去邏輯上群組起關相的眾識別子於單一識別子之下。因此,作用域可以影響這些內容的。 程式員常會縮排他們的原始碼中的作用域,改善可讀性。

Abstract from DBpedia / Wikipedia · CC BY-SA

Connections

Categories