• The scope of a variable is the region of your program in which it is defined.

    一个变量的作用域是程序中定义这个变量的区域。

    youdao

  • Even if the scope of a variable is limited to a block, its lifetime is still that of the entire procedure.

    即使变量的范围被限制在某个块内,其生存期仍为整个过程的生存期。

    youdao

  • The narrower the scope of a variable, the fewer opportunities you have for accidentally referring to it in place of another variable with the same name.

    变量的范围越窄,引用另一个同名变量时不小心引用到该变量的机会就越少。

    youdao

  • The scope of the domain is variable and can range from a cell, cluster, or node to a node group or application server.

    域的范围是可变的,可以从单元、集群或节点,到节点组或应用程序服务器。

    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

  • The scope of a per-user variable is set to be visible in "all tests for this user," which makes it visible to all tests being executed by the same virtual user.

    前用户变量的范围被设置为在“Alltestsforthisuser”中可见,这使得它对相同虚拟用户所执行的所有测试可见。

    youdao

  • Then, a JSP variable named varAlias is created in the page scope of the tag file with jspContext.setAttribute().

    然后,通过 jspContext.setAttribute()在标记文件的页面范围内创建一个名为 varAlias的JSP变量。

    youdao

  • Then register_globals comes in -- and instead of just being available as $_GET['authorized'], there will also be a variable $authorized in global scope, with the value 1.

    后来引入了 register_globals ——它取代了刚才使用的 $_GET['authorized'],同时在全局范围内还存在一个值为 1 的变量 $authorized。

    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

  • The user variable is created and referenced by appending a period and name to the name of the scope object. For example, if a button has the following server-side onclick script.

    通过在scope对象名称后附加句点和名称来创建并引用用户变量。

    youdao

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

    当一个闭包“捕获”一个变量时,它就会将这个变量提取出它的本地范围,移到一个匿名对象里。

    youdao

  • Instead, the names of the input and output pins on the actions are labeled by a parameter, variable, or structural feature in the context classifier (the class owning the activity) that is in scope.

    相反,操作上输入与输出的名字,会标上范围内背景标识符(拥有活动的类)中的参数、变量或者结构性特性。

    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

  • puts a In Ruby 1.8, this code prints "42", because the block variable a is actually the same a of the containing scope.

    putsa在Ruby 1.8中,这段代码会打印出“42”,因为块变量a和所包含域中的a就是一个变量。

    youdao

  • The calculator makes use of the local statement to declare x as a local variable that is available only within the scope of the mycalc function.

    这个计算器利用local语句将x声明为局部变量,只能在mycalc函数的范围内使用。

    youdao

  • You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.

    可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。

    youdao

  • The [[Scope]] property is actually a list of variable objects accessible from the function’s containing scope.

    实际上,[[Scope]]属性对应的是一个对象(Variable Objects)列表,列表中的对象是可以从函数内部访问的。

    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

  • The var and scope attributes are used to specify a scoped variable that -- as a result of <fmt:parseDate> -- the Date object is assigned to.

    var和scope属性用来指定限定了作用域的变量(作为 <fmt:parseDate> 的结果),将把Date对象赋给该变量。

    youdao

  • The var and scope attributes specify a scoped variable for storing the results of the query.

    var和scope属性规定存储查询结果的scoped变量。

    youdao

  • For example, you may have defined a CLR type at global scope and tried to create a variable of the type as part of the definition.

    例如,您可能定义了一个全局范围的clr类型,并尝试在定义中创建该类型的一个变量。

    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

  • Variable-speed control pump performance, more economical, a broader scope of application of all agricultural water pumps can be used.

    变速调节水泵性能,比较经济,适用范围较广,对所有农用水泵均能采用。

    youdao

  • Variable-speed control pump performance, more economical, a broader scope of application of all agricultural water pumps can be used.

    变速调节水泵性能,比较经济,适用范围较广,对所有农用水泵均能采用。

    youdao

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

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

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