If the variable wasn't declared in any block, its scope is from the place it was declared to the end of the file.
假如变量未在任何块里申明,它的作用域就是从申明它的地方开始,到文件的结尾。
And this is why Scope implements IDisposable: Scope will be used in a using block, such that the constructor publishes the instance and the Dispose method revokes it.
这也是Scope实现IDisposable的原因:Scope将用于using块中,以便构造函数发布实例以及Dispose方法撤销该实例。
The nicest thing about categories is the inherent scope limiting of the lexical block.
categories的好处是固有的词典块范围限制。
Within the scope of the with_interface block, the radius method defined with that interface name exists and can be called.
在with _ interface代码块的作用域中,可以调用使用该接口名定义的radius方法。
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就是一个变量。
In this case the scope of that block is.
它的作用是“在block的作用范围中对语句进行求解”。
The scope between the name space of the environment that defines the code block and the function that USES it are essentially one scope: the scope is closed.
定义代码块的环境的名称空间和使用它的函数之间的作用域本质上是一个作用域:该作用域是闭合的。
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.
这段代码可以引用块中定义的局部变量、闭包的参数以及创建闭包的作用域中的变量。
When they are applied to a surface, these particles block the minute crevices in it, reducing the scope for dirt, moisture and bacteria to cling to the surface.
当这些颗粒覆盖到某一表面时,就能堵塞表面细缝,从而减少灰尘、水分和细菌的黏附。
More interesting code appears in the InterfaceSwitching mix-in: the set_interface method redefines the original (renamed) method for the scope of the block created within the with_interface method.
更加有趣的代码出现在interfaceswitching中:set _ interface方法为在with _ interface方法中创建的代码块的作用域重新定义了原始(重命名的)方法。
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表达式被视为值,因此可存储在变量中并在将捕获的变量声明为超出范围的代码块执行之后执行。
The binding (or context) is the scope in which the block is created. The following code is the full implementation of the where method.
下面的代码是对where方法的完整实现。
In this paper the characteristics and application scope of concrete block as substitute of solid brick are introduced.
介绍了作为实心粘土砖替代品的混凝土砌块的特点及使用范围。
It then has "scope" over that block; it handles any errors occurring within the block.
它于是具有该块的“范围”,它处理发生在该块内的任何错误。
Procedure and block scope are closely related.
过程范围和块范围密切相关。
A name declared in a block (6.3) is local to that block. Its potential scope begins at its point of declaration (3.3.1) and ends at the end of its declarative region.
块(6.3)中声明的名字是局部于这个块的。它的潜在作用域从其声明点(3.3.1)开始,到其声明区域的结尾结束。
Combining with the status of fault block Gao30, the technology of "Large scope short period pulsating water flooding" was developed and development effect was improved remarkably.
结合高30断块处于开发中后期、含水上升快、各项治理措施未获突破等状况,采取了“大幅短期脉冲注水”,油藏开发效果得到显著改善。
Anyway, the problem is to do with scope - if you want to declare variables within an if block it needs to have curly braces and then the variables are only valid within that brace block.
不管怎样,问题是要做的范围-如果你想在一个声明变量如果块需要大括号,则变量是唯一有效的内支撑块。
Then, through organic combination of rock mass block index and absolute weathering index in the general sector scope table, the quantitative method of GSI is constituted.
将岩体块度指数、绝对风化指数在地质强度指标的区间范围概化表上有机结合起来,构成了GSI的定量确定方法。
Pertaining to the relationship between a language object and a block such that the language object has a scope contained in that block.
用于修饰语言对象与模块之间的关系,以使语言对象具有在该模块中的一个范围域。
Design scope: west area within the red line range minus the Stadium block, minus the Successful Quality Education building block, minus the roads and buildings in this area.
范围:西区红线范围减去体育馆地块、减去成功素质教育大楼地块、减去道路和建筑。
The data variable is never used again after the object scope, but it is not necessarily cleared when we leave the block.
虽说变量在其作用域执行后不会再被使用了,但是这不意味着在我们离开作用域后他们就一定能被清理掉。
Even if the scope of a variable is limited to a block, its lifetime is still that of the entire procedure.
即使变量的范围被限制在某个块内,其生存期仍为整个过程的生存期。
When they are applied to a surface these particles block the minute crevices in it reducing the scope for dirt moisture and bacteria to cling to the surface.
当这些粒子被涂抹到某一表面时,就能填埋住表面微小的裂缝,从而减少了污垢、湿气和细菌粘附表面的机会。
When they are applied to a surface these particles block the minute crevices in it reducing the scope for dirt moisture and bacteria to cling to the surface.
当这些粒子被涂抹到某一表面时,就能填埋住表面微小的裂缝,从而减少了污垢、湿气和细菌粘附表面的机会。
应用推荐