• When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.

    闭包捕获”一个变量时,就会将这个变量提取本地范围匿名对象里。

    youdao

  • The functions themselves only exist in the scope of the variable of which they are defined, so when that variable goes out of scope, so does the function.

    函数本身存在定义函数变量范围内,因此该变量超出范围时,函数也超出范围。

    youdao

  • Watch the variables being used in a function. If you notice a function using an out-of-scope variable more than once, store it in a local variable and use that instead.

    仔细检查函数所有使用变量如果一个变量不是当前作用域定义的,而且使用不止一次那么我们就应该把这个变量保存局部变量中,而使用这个局部变量来进行读写操作。

    youdao

  • Because tally is a local variable within the function, it is created anew with each call and falls out of scope and is destroyed automatically when each call returns.

    由于tally函数本地变量将在每次调用重新创建清空范围并且每个调用被返回自动销毁

    youdao

  • But lambda expressions are treated as values and can therefore be stored in a variable and executed after the block in which the captured variable was declared has gone out of scope.

    但是lambda表达式视为因此存储变量在将捕获的变量声明超出范围的代码执行之后执行。

    youdao

  • Firefox 3.1 Beta 2 was somewhat surprising as local variable writes were very fast but performance degraded significantly once the variable was out of the local scope.

    Firefox 3.1Beta2表现有点出人意料对于局部变量执行的效率非常随着作用层数的增加,效率便大打折扣。

    youdao

  • Consider the example in Listing 1, where a closure is defined in a class, and then invoked after the object variable goes out of scope.

    考虑清单1中的示例其中closure定义并且对象超出范围之外进行调用

    youdao

  • Local variables are faster to access than out-of-scope variables because they exist in the first variable object of the scope chain.

    局部变量域外变量因为它位于作用第一对象中。

    youdao

  • To calculate the sum you need to declare a variable out of the for loop scope. so declare a variable say sum and after each input add price to sum.

    计算需要声明变量循环范围的总和所以声明一个变量表示每个输入添加价格

    youdao

  • Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory that contains the VARIANTARG is freed (as when a local variable goes out of scope).

    使用这个函数清除VARIANTARG(VARIANT)类型变量内存包含VARIANTARG被释放(一个局部变量超出作用域时)。

    youdao

  • Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory that contains the VARIANTARG is freed (as when a local variable goes out of scope).

    使用这个函数清除VARIANTARG(VARIANT)类型变量内存包含VARIANTARG被释放(一个局部变量超出作用域时)。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定