About: Linkage   Goto Sponge  NotDistinct  Permalink

An Entity of Type : yago:Writer110794014, within Data Space : wasabi.inria.fr associated with source document(s)

In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static keyword is used in C to restrict the visibility of a function or variable to its translation unit. This is also valid in C++. (C++ 98/03 deprecated this usage in favor of anonymous namespaces, but is no longer deprecated in C++ 11.) Also, C++ implicitly treats any const namespace-scope variable as having internal linkage unless it is explicitly declared extern, unlike C.

AttributesValues
type
label
  • Linkage (software)
  • 链接性
comment
  • 链接性(linkage)是程序编译时,程序中的名字(name,也可称标识符identifier)在中不同位置的出现能够绑定到同一对象或函数。C++语言中,链接性描述了名字在整个程序或单独中能否绑定到同一实体(entity)。
  • In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static keyword is used in C to restrict the visibility of a function or variable to its translation unit. This is also valid in C++. (C++ 98/03 deprecated this usage in favor of anonymous namespaces, but is no longer deprecated in C++ 11.) Also, C++ implicitly treats any const namespace-scope variable as having internal linkage unless it is explicitly declared extern, unlike C.
sameAs
topic
described by
subject
dbo:wikiPageID
dbo:wikiPageRevisionID
dbo:wikiPageWikiLink
is primary topic of
wasDerivedFrom
dbo:abstract
  • 链接性(linkage)是程序编译时,程序中的名字(name,也可称标识符identifier)在中不同位置的出现能够绑定到同一对象或函数。C++语言中,链接性描述了名字在整个程序或单独中能否绑定到同一实体(entity)。
  • In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static keyword is used in C to restrict the visibility of a function or variable to its translation unit. This is also valid in C++. (C++ 98/03 deprecated this usage in favor of anonymous namespaces, but is no longer deprecated in C++ 11.) Also, C++ implicitly treats any const namespace-scope variable as having internal linkage unless it is explicitly declared extern, unlike C. A name's linkage is related to, but distinct from, its scope. The scope of a name is the part of a translation unit where it is visible. For instance, a name with global scope (which is the same as file-scope in C and the same as the global namespace-scope in C++) is visible in any part of the file. Its scope will end at the end of the translation unit, whether or not that name has been given external or internal linkage. If the name has external linkage, the entity that name denotes may be referred to from another translation unit using a distinct declaration for that same name, and from other scopes within the same translation unit using distinct declarations. Were the name given internal linkage, such a declaration would denote a distinct entity, although using the same name, but its entity could be referred to by distinct declarations within the same translation unit. A name that has no linkage at all cannot be referred to from declarations in different scopes, not even from within the same translation unit. Examples of such names are parameters of functions and local variables. The details differ between C (where only objects and functions - but not types - have linkage) and C++ and between this simplified overview. Linkage between languages must be done with some care, as different languages adorn their external symbols differently.A common idiom uses extern "C" to link C++ and C code.
dbo:wikiPageLength
is sameAs of
is topic of
is dbo:wikiPageWikiLink of
is Wikipage redirect of
is Wikipage disambiguates of
is topic of
is http://vocab.deri.ie/void#inDataset of
Faceted Search & Find service v1.13.91 as of Mar 24 2020


Alternative Linked Data Documents: Sponger | ODE     Content Formats:       RDF       ODATA       Microdata      About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data]
OpenLink Virtuoso version 07.20.3229 as of Jul 10 2020, on Linux (x86_64-pc-linux-gnu), Single-Server Edition (94 GB total memory)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2025 OpenLink Software