转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 软件开发 >> VB.NET程序 >> 正文
[basic.scope.local] - 【基本.作用域.局部】         ★★★★

[basic.scope.local] - 【基本.作用域.局部】

作者:闵涛 文章来源:闵涛的学习笔记 点击数:691 更新时间:2009/4/23 15:42:25
请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

3 Basic concepts [basic]

3.3 Declarative regions and scopes [basic.scope]

3.3.2 Local scope [basic.scope.local]

 

3 基本概念 【基本】

3.3 定义区域和作用域 【基本.作用域】

3.3.2 局部作用域 【基本.作用域.局部】

 

A name declared in a block (6.3) is local to that block. Its potential scope begins at its point of declaration (3.3.1) and ends at the end of its declarative region.

 

块(6.3)中声明的名字是局部于这个块的。它的潜在作用域从其声明点(3.3.1)开始,到其声明区域的结尾结束。

 

The potential scope of a function parameter name in a function definition (8.4) begins at its point of declaration. If the function has a function try-block the potential scope of a parameter ends at the end of the last associated handler, else it ends at the end of the outermost block of the function definition. A parameter name shall not be redeclared in the outermost block of the function definition nor in the outermost block of any handler associated with a function try-block.

 

函数定义(8.4)中函数参数名的潜在作用域从其声明点开始。如果该函数具有函数 try-块,则参数的潜在作用域到其最后一个关联处理器的结尾结束,否则就到该函数最外层块的结尾结束。参数名在函数定义的最外层块中,以及任何该函数的函数 try-块关联的任何处理器的最外层块中,都不能重新声明。

 

The name in a catch exception-declaration is local to the handler and shall not be redeclared in the outer most block of the handler.

 

catch 异常声明中的名字局部于该处理器,并且不能在该处理器的最外层块中重新声明。

 

Names declared in the for-init-statement, and in the condition of if, while, for, and switch statements are local to the if, while, for, or switch statement (including the controlled statement), and shall not be redeclared in a subsequent condition of that statement nor in the outermost block (or, for the if statement, any of the outermost blocks) of the controlled statement; see 6.4.

 

for-初始化-语句中声明的名字,以及在 ifwhilefor,和 switch 语句的条件中声明的名字,局部于 ifwhilefor,或 switch 语句(包括被控语句),并且不能在其语句的条件子序列,或其被控语句的最外层块中重新声明;参见 6.4。

 

PREV [basic.scope.pdecl] | NEXT [basic.scope.proto] 上一页 【基本.作用域.声明点】 | 下一页 【基本.作用域.原型】


[VB.NET程序]几个 WMI 的例子(初级) - 1  [VB.NET程序]几个 WMI 的例子(初级) - 2
[VB.NET程序]几个 WMI 的例子(初级) - 3  [VB.NET程序]几个 WMI 的例子(初级) - 4
[Delphi程序][Tips]挂起 - 运行外部程式,外部程式退出 - 继续…  [Delphi程序]升级到Delphi 6 - 兼容性问题(中文全文)
[Delphi程序]升级到Delphi 6 - 兼容性问题之三(完)  [Delphi程序]升级到Delphi 6 - 兼容性问题之二
[Delphi程序]升级到Delphi 6 - 兼容性问题之一  [Delphi程序]2001 年軟體界的巨星 - Kylix:李维.
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · C语言系列  · VB.NET程序
    · JAVA开发  · Delphi程序
    · 脚本语言
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台