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

3.4 - [basic.lookup] - 【基本.查找】

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

3 Basic concepts [basic]

3.4 Name lookup [basic.lookup]

 

3 基本概念 【基本】

3.4 名字查找 【基本.查找】

 

The name lookup rules apply uniformly to all names (including typedef-names (7.1.3), namespace-names (7.3) and class-names (9.1)) wherever the grammar allows such names in the context discussed by a particular rule. Name lookup associates the use of a name with a declaration (3.1) of that name. Name lookup shall find an unambiguous declaration for the name (see 10.2). Name lookup may associate more than one declaration with a name if it finds the name to be a function name; the declarations are said to form a set of overloaded functions (13.1). Overload resolution (13.3) takes place after name lookup has succeeded. The access rules (clause 11) are considered only once name lookup and function overload resolution (if applicable) have succeeded. Only after name lookup, function overload resolution (if applicable) and access checking have succeeded are the attributes introduced by the name''''s declaration used further in expression processing (clause 5).

 

无论语法对某条特定规则论述的语境中的名字允许出现在何处,名称查找规则统一地应用到所有名字上(包括 typedef-名称(7.1.3),名字空间-名称(7.3)和类-名称(9.1))。名字查找将名字的应用羽其名字的声明(3.1)联系起来。名字查找应该找到该名字的一个明确的声明(见 10.2)。名字查找如果发现名字为函数名字,可能将其联系到多于一个声明上;这些声明被认为构成一组重载函数(13.1)。重载解析(13.3)在名字查找成功之后进行。访问规则(章节 11)仅当名字查找和函数重载解析(如果适用)成功后被考虑,仅在名字查找,函数重载解析(如果适用)和访问检查成功后,由该名字的声明引入的属性才被表达式处理(章节 5)中进一步使用。

 

A name "looked up in the context of an expression" is looked up as an unqualified name in the scope where the expression is found.

 

在“表达式的语境中查找”的名字是被出现该表达式的作用域中作为非限定名称查找的。

 

Because the name of a class is inserted in its class scope (clause 9), the name of a class is also considered a member of that class for the purposes of name hiding and lookup.

 

由于类的名称是被插入到其类作用域(章节 9)中,所以处理名字隐藏和查找时,类的名字同样被看作该类的成员。

 

[Note: 3.5 discusses linkage issues. The notions of scope, point of declaration and name hiding are discussed in 3.3. ]

 

注:3.5 讨论连接性的问题。作用域,声明点和名字隐藏的概念在 3.3 中讨论。】

 

3.4.1 Unqualified name lookup [basic.lookup.unqual]

 

3.4.1 非限定名称查找 【基本.查找.非限定】

 

3.4.2 Argument-dependent name lookup [basic.lookup.koenig]

 

3.4.2 自变量关联名称查找 【基本.查找.koenig】

 

3.4.3 Qualified name lookup [basic.lookup.qual]

 

3.4.3 限定名称查找 【基本.查找.限定】

 

3.4.4 Elaborated type specifiers [basic.lookup.elab]

 

3.4.4 详细类型限定 【基本.查找.详细】

 

3.4.5 Class member access [basic.lookup.classref]

 

3.4.5 类成员访问 【基本.查找.类参照】

 

3.4.6 Using-directives and namespace aliases [basic.lookup.udir]

 

3.4.6 Using-指令和名字空间别名 【基本.查找.u指令】

 

PREV [basic.scope.hiding] | NEXT [basic.lookup.unqual] 上一页 【基本.作用域.隐藏】 | 下一页 【基本.查找.非限定】


[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……
    咸宁网络警察报警平台