dbo:abstract |
In computer programming, scope is an enclosing context where values and expressions are associated. The scope resolution operator helps to identify and specify the context to which an identifier refers, particularly by specifying a namespace. The specific uses vary across different programming languages with the notions of scoping. In many languages, the scope resolution operator is written ::. In some languages, notably those influenced by Modula-3 (including Python and Go), modules are objects, and scope resolution within modules is a special case of usual object member access, so the usual method operator . is used for scope resolution. Other languages, notably C++ and Ruby, feature both scope resolution and method access, which interact in various ways; see examples below. (en) 计算机编程中,作用域是名字(name)与实体(entity)的绑定(binding)保持有效的那部分计算机程序,表达式只有在其作用域中才能求值。作用域解析运算符(scope resolution operator)用于辨识和指出标识符属于哪个作用域上下文,特别是属于哪个命名空间。很多编程语言的作用域解析运算符写为::。 受Modula-3影响的一些编程语言(如Python和Go语言),模块(module)是对象,模块的作用域解析是对象成员访问的一种特殊情形,因此通常用.来作用域解析。其他语言,如C++和Ruby语言支持作用域解析和成员访问。 (zh) |
dbo:wikiPageExternalLink |
http://www.stroustrup.com/glossary.html |
dbo:wikiPageID |
9334188 (xsd:integer) |
dbo:wikiPageLength |
4953 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID |
1111244938 (xsd:integer) |
dbo:wikiPageWikiLink |
dbc:Articles_with_example_Ruby_code dbr:Python_(programming_language) dbr:Ruby_(programming_language) dbr:Namespace dbr:Colon_(punctuation) dbr:Constant_(computer_programming) dbr:Object_(computer_science) dbr:Go_(programming_language) dbr:Modula-3 dbr:Computer_programming dbr:Zend_Engine dbr:Identifier_(computer_languages) dbr:C++ dbc:PHP_software dbr:Local_variable dbc:Articles_with_example_PHP_code dbc:Operators_(programming) dbr:PHP dbr:Global_variable dbc:Articles_with_example_C++_code dbr:Class_variable dbr:Instance_variable dbr:Scope_(computer_science) dbr:Sigil_(computer_programming) dbr:Value_(computer_science) dbr:Expression_(computer_science) dbr:Keyword dbr:Programming_language |
dbp:wikiPageUsesTemplate |
dbt:Refimprove dbt:Reflist dbt:IPA-he |
dct:subject |
dbc:Articles_with_example_Ruby_code dbc:PHP_software dbc:Articles_with_example_PHP_code dbc:Operators_(programming) dbc:Articles_with_example_C++_code |
gold:hypernym |
dbr:Context |
rdfs:comment |
计算机编程中,作用域是名字(name)与实体(entity)的绑定(binding)保持有效的那部分计算机程序,表达式只有在其作用域中才能求值。作用域解析运算符(scope resolution operator)用于辨识和指出标识符属于哪个作用域上下文,特别是属于哪个命名空间。很多编程语言的作用域解析运算符写为::。 受Modula-3影响的一些编程语言(如Python和Go语言),模块(module)是对象,模块的作用域解析是对象成员访问的一种特殊情形,因此通常用.来作用域解析。其他语言,如C++和Ruby语言支持作用域解析和成员访问。 (zh) In computer programming, scope is an enclosing context where values and expressions are associated. The scope resolution operator helps to identify and specify the context to which an identifier refers, particularly by specifying a namespace. The specific uses vary across different programming languages with the notions of scoping. In many languages, the scope resolution operator is written ::. (en) |
rdfs:label |
Scope resolution operator (en) 作用域解析运算符 (zh) |
owl:sameAs |
freebase:Scope resolution operator wikidata:Scope resolution operator dbpedia-zh:Scope resolution operator https://global.dbpedia.org/id/4usTa |
prov:wasDerivedFrom |
wikipedia-en:Scope_resolution_operator?oldid=1111244938&ns=0 |
foaf:isPrimaryTopicOf |
wikipedia-en:Scope_resolution_operator |
is dbo:wikiPageRedirects of |
dbr:Paamayim_Nekudotayim dbr:Scope_resolution dbr:Paamayim_nekudotayim dbr:Scope_Resolution_Operator dbr:T_PAAMAYIM_NEKUDOTAYIM |
is dbo:wikiPageWikiLink of |
dbr:Method_overriding dbr:Colon_(punctuation) dbr:Paamayim_Nekudotayim dbr:Double_colon dbr:Scope_resolution dbr:Operator_(computer_programming) dbr:Operators_in_C_and_C++ dbr:Paamayim_nekudotayim dbr:Virtual_inheritance dbr:Scope_Resolution_Operator dbr:T_PAAMAYIM_NEKUDOTAYIM |
is foaf:primaryTopic of |
wikipedia-en:Scope_resolution_operator |