变域变分原理,可以结合可变区为功能,这使得它可以同时计算流场的变量域。
Variable-domain variational principles can couple the variable domain into functional, which makes it possible to calculate the flow field with the variable-domain simultaneously.
为了回答这个问题,我模拟了一系列的测试,来测试不同作用域深度中变量的性能。
In order to answer this question, I set up a series of tests using variables of different scope-depth.
在常量表达式,比如枚举型常量、位域的宽度或是静态变量的初始值,是不允许使用在这种声明中的。
Embedded statements are not allowed in constant expressions, such as the value of an enumeration constant, the width of a bit-field, or the initial value of a static variable.
注意- F是由预先定义的FS变量所定义的输入域分隔符。
Note that -f is the input field separator defined by the predefined variable FS.
每个局部变量的名称都对应着表单中相应输入域的name属性。
The name of each local variable corresponds to the name attribute of the respective input field in the form.
故名思意,“隐式类型局部变量”将无法用于域变量或常量的声明中,否则将导致编译错误。
Also as the name says, implicitly typed local variable, you cannot use var for field declaration or constant variables, therefore following declarations will both produce a compiler error.
这就意味着在执行with的过程中,实际上的局部变量都被移到作用域链上的第二个位置,这会带来性能上的损失。
This means that local variables actually move to an identifier depth of two during execution of the with, imposing a performance penalty.
值得注意的是,这里有一些例外情况,GoogleChrome和最新的WebKit午夜版在访问变量的时间保持得很稳定,不会随着作用域深度的递增而增长。
The notable exceptions in this case are Google Chrome and the latest nightly WebKit as their variable access times remain roughly constant even as identifier depth increases.
然而,直到输入一个值到输入框以后,您传递到WMLScript函数的代表输入域值的那个变量才开始被初始化。
However, the variable representing the input field value that you pass to the WMLScript function is not initialized until you enter a value in the input box.
Firefox 3.1Beta2的表现有点出人意料,对于局部变量执行的效率非常高,但随着作用域层数的增加,效率便大打折扣。
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.
通常,可选的scope属性用来指定由var属性指定的变量的作用域。
As usual, the optional scope attribute is used to specify the scope for the variable named by the var attribute.
demo_form . tpl模板(见清单9)包含了一个HTML表单,这个表单的域可能是可编辑的,也可能是不可编辑的,这取决于名为edit _ mode的变量值。
The demo_form.tpl template (see Listing 9) contains an HTML form whose fields may be editable or not depending on the value of a variable named edit_mode.
scope属性控制该变量的作用域,缺省情况下是页面作用域。
The scope attribute controls the scoping of this variable, and defaults to page scope.
servlet上下文属性与保存在application 作用域内的JSP/JSF变量类似。
The servlet context's attributes are the same thing as the JSP/JSF variables kept in the application scope.
编程基础(变量,数据类型,引用,指针,作用域,错误处理,迭代,核心算法-搜索,排序等)
The basics of Programming (variables, data types, references, pointers, scope, error handling, iteration, core algorithms - searching, sorting, etc.)
一个闭包封闭了这些引用,所以函数调用可以安全的引用这些变量,即使它们已经超出了函数的作用域。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
还要设置变量作用域,以限制变量只在某个“会话”中活动。
Set the variable scope to limit variables to live only within a "session".
它使SOA有机会构建真正可重用的服务:资源生命周期服务可以跨过程域和过程变量被重用。
It gives SOA the opportunity to build truly reusable services: the Resource Lifecycle services which can be reused across process domains and process variants.
假如变量未在任何块里申明,它的作用域就是从申明它的地方开始,到文件的结尾。
If the variable wasn't declared in any block, its scope is from the place it was declared to the end of the file.
例如,在第6章中对栈和寄存器结构的解释要联系到第4章中对变量作用域的解释。
For example, the explanation of stacks and register frames in Chapter 6 connected with Chapter 4's explanation of variable scope.
如果产生了异常,那么就会对那个限定了作用域的变量进行赋值:如清单18中的EL表达式所显示的那样,该变量的值将不会为空。
If an exception was raised, then assignment to the scoped variable will occur: as the EL expression in Listing 18 suggests, its value will not be empty.
使用长期运行的对话,允许变量保持作用域直至对话结束,而不仅仅是单个请求。
Using a long-running conversation allows variables to remain in scope until the end of the conversation, instead of merely for a single request.
仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。
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.
只有三个关键变量来决定结果:是否需要跨域,是否需要确保执行顺序,是否需要触发示忙器。
Only three variables determine the outcome: is the script on the same domain as the main page, is it necessary to preserve execution order, and should the busy indicators be triggered.
my变量有时也叫做词法变量,因为它们的作用域仅仅依赖于程序文本自身,不依赖于执行细节,例如以什么顺序来执行什么。
These 'my variables' are sometimes called' lexical 'because their scope depends only on the program text itself, and not on details of execution, such as what gets executed in what order.
如果指定了var属性,那么将会创建一个带有指定名称的并限定了作用域的变量,并将每次迭代的当前索引值赋给该变量。
If the var attribute is specified, then a scoped variable with the indicated name will be created and assigned the current value of the index for each pass through the iteration.
管理变量和成员作用域。
管理变量和成员作用域。
应用推荐