故名思意,“隐式类型局部变量”将无法用于域变量或常量的声明中,否则将导致编译错误。
Also as the name says, implicitly typed local variable, you cannot use var for field declaration or constant variables, therefore following declarations will both produce a compiler error.
还要设置变量作用域,以限制变量只在某个“会话”中活动。
Set the variable scope to limit variables to live only within a "session".
例如,在第6章中对栈和寄存器结构的解释要联系到第4章中对变量作用域的解释。
For example, the explanation of stacks and register frames in Chapter 6 connected with Chapter 4's explanation of variable scope.
应用推荐