12.3.3.16 Foreach statements
来源:互联网 发布:网络最火的改编歌曲 编辑:程序博客网 时间:2024/06/06 12:29
12.3.3.16 Foreach statements
For a foreach statement stmt of the form:
foreach (type identifier in expr) embedded-statement
?The definite assignment state of v at the beginning of expr is the same as
the state of v at the
beginning of stmt.
?The definite assignment state of v on the control flow transfer to
embedded-statement or to the end
point of stmt is the same as the state of v at the end of expr.
For a foreach statement stmt of the form:
foreach (type identifier in expr) embedded-statement
?The definite assignment state of v at the beginning of expr is the same as
the state of v at the
beginning of stmt.
?The definite assignment state of v on the control flow transfer to
embedded-statement or to the end
point of stmt is the same as the state of v at the end of expr.
- 12.3.3.16 Foreach statements
- 12.3.3.3 Expression statements
- 12.3.3.4 Declaration statements
- 12.3.3.5 If statements
- 12.3.3.6 Switch statements
- 12.3.3.7 While statements
- 12.3.3.8 Do statements
- 12.3.3.9 For statements
- 12.3.3.11 Throw statements
- 12.3.3.12 Return statements
- 12.3.3.17 Using statements
- 12.3.3.18 Lock statements
- 12.3.3.13 Try-catch statements
- 12.3.3.14 Try-finally statements
- 12.3.3.1 General rules for statements
- 12.3.3.15 Try-catch-finally statements
- foreach
- foreach
- 12.3.3.12 Return statements
- 12.3.3.13 Try-catch statements
- 12.3.3.14 Try-finally statements
- 12.3.3.15 Try-catch-finally statements
- linux命令大全
- 12.3.3.16 Foreach statements
- 12.3.3.17 Using statements
- 12.3.3.18 Lock statements
- 12.3.3.19 General rules for simple expression
- [收藏老友随笔]写在临别之前
- 12.3.3.20 General rules for expressions with embedded expressions
- 12.3.3.21 Invocation expressions and object creation expressions
- 冬天
- 关于C++指针