如果任意一个函数参数或者局部变量引用了客户端对象,你就导致了内容泄漏。
If any of those function arguments or local variables refer to a client-side object, you may be creating a memory leak.
这种语法表示把所有局部变量通过引用传递给lambda函数。
This syntax implies that all local variables will be passed by reference to the lambda function.
对于源代码的一项更实质性的限制是不能引用在所添加的声明或者块外声明的局部变量。
A more substantial limitation on the source code is that there's no way to refer to local variables declared outside the statement or block being added.
这段代码可以引用块中定义的局部变量、闭包的参数以及创建闭包的作用域中的变量。
This code can refer to local variables defined within the block, arguments to the closure, or variables from the scope in which the closure is created.
在指令序列中使用仅引用一次的局部变量。
Using a local variable declared inside a sequence of instructions that is referenced only once.
内部类以及lambda表达式一个局限性是——它们只引用来自它们的词法作用域的最终(final)局部变量。
One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.
创建一个对象,用于创建对局部变量的引用。
Creates an object for creating references to local variables.
应用程序的根包含全局对象指针、静态对象指针、线程堆栈中的局部变量和引用对象参数以及CPU寄存器。
An application's roots include global and static object Pointers, local variables and reference object parameters on a thread's stack, and CPU registers.
获取或设置要引用的局部变量的名称。
获取或设置要引用的局部变量的名称。
应用推荐