In most programming languages, you can declare named entities such as variables, functions, classes, and types. Each declaration has a scope, which defines from where the declared name is visible. The rules that determine visibility of declarations are called scope rules.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Scopes, Functions, and Parameter Passing

  • Torben Ægidius Mogensen

摘要

In most programming languages, you can declare named entities such as variables, functions, classes, and types. Each declaration has a scope, which defines from where the declared name is visible. The rules that determine visibility of declarations are called scope rules.