This would be a major change to programmer expectations about local variables, especially in the absence of any special declaration that this is one of those weird new long-lived local variables.
这是对程序员关于局部变量的预期的重大变更,具体来讲,缺少了任何将此变量声明为奇怪的、新的耐久局部变量的特殊声明。
Although you should avoid name hiding (giving local variables the same names as attributes), the use of accessors to always access attributes means you can give local variables any name you want.
虽然应该避免名称隐藏(为本地变量赋予与属性相同的名称),但是始终使用读写方法来访问属性意味着:可以为本地变量赋予任何名称。
Variables declared within a method are said to be local variables. What is the significance of the word local in this context?
方法内部声明的变量叫做局部变量。这儿局部的意思是什么?
If local variables require more local variable space than is available, try declaring some variables at the module level.
如果本地变量所需的本地变量空间多于可用空间,请尝试在模块级声明一些变量。
Because procedures can pass the addresses of local variables and arguments to subprocedures, keeping local variables in static cells is unacceptably complex.
由于函数可以把本地局部变量或参数的地址传给子函数,因此为局部变量分配固定内存几乎不可能。
Implicitly typed local variables, which permit the type of local variables to be inferred from the expressions used to initialize them.
隐型局部变量,允许局部变量的类型从初始化它们的表达式推导而来。
Implicitly typed local variables, which permit the type of local variables to be inferred from the expressions used to initialize them.
隐型局部变量,允许局部变量的类型从初始化它们的表达式推导而来。
应用推荐