没有合适的资源?快使用搜索试试~ 我知道了~
Ecma-C++/CLI
需积分: 9 2 下载量 25 浏览量
2010-03-05
09:21:24
上传
评论
收藏 1.68MB PDF 举报
温馨提示
试读
304页
托管C++实现规范,支持托管C++开发!
资源推荐
资源详情
资源评论
ECMA-372
1
st
Edition /
December
2005
C++/CLI Language
Specification
Standard
ECMA-372
1
st
Edition / December 2005
C++/CLI Language
Specification
Ecma International Rue du Rhône 114 CH-1204 Geneva T/F: +41 22 849 6000/01 www.ecma-international.org
.
Table of Contents
iii
Table of Contents
Introduction...................................................................................................................................................xii
1. Scope............................................................................................................................................................. 1
2. Conformance ...............................................................................................................................................2
3. Normative references..................................................................................................................................3
4. Definitions....................................................................................................................................................4
5. Notational conventions................................................................................................................................7
6. Acronyms and abbreviations .....................................................................................................................8
7. General description.....................................................................................................................................9
8. Language overview....................................................................................................................................10
8.1 Getting started ....................................................................................................................................... 10
8.2 Types ..................................................................................................................................................... 10
8.2.1 Fundamental types and the CLI ...................................................................................................... 12
8.2.2 Conversions .................................................................................................................................... 13
8.2.3 CLI array types ............................................................................................................................... 13
8.2.4 Type system unification.................................................................................................................. 13
8.2.5 Pointers, handles, and null .............................................................................................................. 14
8.3 Parameters ............................................................................................................................................. 16
8.4 Automatic memory management........................................................................................................... 17
8.5 Expressions............................................................................................................................................ 18
8.6 Statements.............................................................................................................................................. 19
8.7 Delegates ............................................................................................................................................... 19
8.8 Native and ref classes ............................................................................................................................ 20
8.8.1 Literal fields.................................................................................................................................... 20
8.8.2 Initonly fields.................................................................................................................................. 21
8.8.3 Functions......................................................................................................................................... 21
8.8.4 Properties ........................................................................................................................................ 21
8.8.5 Events.............................................................................................................................................. 23
8.8.6 Static operators ............................................................................................................................... 24
8.8.7 Instance constructors....................................................................................................................... 25
8.8.8 Destructors and finalizers ............................................................................................................... 25
8.8.9 Static constructors........................................................................................................................... 26
8.8.10 Inheritance .................................................................................................................................... 27
8.9 Value classes ......................................................................................................................................... 28
8.10 Interfaces ............................................................................................................................................. 28
8.11 Enums.................................................................................................................................................. 30
8.12 Namespaces and assemblies ................................................................................................................ 30
8.13 Versioning ........................................................................................................................................... 31
8.14 Attributes ............................................................................................................................................. 32
8.15 Generics............................................................................................................................................... 33
8.15.1 Creating and consuming generics ................................................................................................. 33
8.15.2 Constraints .................................................................................................................................... 34
8.15.3 Generic functions.......................................................................................................................... 35
9. Lexical structure........................................................................................................................................37
9.1 Tokens ................................................................................................................................................... 37
9.1.1 Identifiers ........................................................................................................................................ 37
9.1.2 Keywords ........................................................................................................................................ 38
剩余303页未读,继续阅读
资源评论
sheweiwei
- 粉丝: 1
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功