In most situations it is possible to avoid such a variable access pattern.
在大多数情况下,可以避免这样的变量访问模式。
This mode is often used for global variable access, branching, and subroutine calls.
这种模式通常用于全局变量访问、分支以及子程序调用。
Write a standard lock plus "double check" to create a critical section around a variable access.
写一个标准的lock,在访问变量的前后创建临界区,要有“双重检查”。
These engines perform optimizations to run code faster, and clearly, these optimizations make variable access much faster than others.
这些引擎在执行代码时进行了优化,而且很明显,这些优化使访问变量的速度比以往更快。
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.
值得注意的是,这里有一些例外情况,GoogleChrome和最新的WebKit午夜版在访问变量的时间保持得很稳定,不会随着作用域深度的递增而增长。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
A global variable, on the other hand, you can access anywhere within your process.
另一方面,您可以在流程中的任何位置访问全局变量。
And because each global variable has session scope, every session has its own private value that it can manipulate and use and no other session can access that value.
并且由于每个全局变量以会话为范围,所有会话都拥有自己的私有值进行操作和使用,而其他会话无法访问这些私有值。
Stores the global variable in the data area for the test engine, which allows access from different tests and different schedule user groups.
将这个全局变量保存到测试引擎的数据区域,这样允许不同的测试和不同调度的用户组进行访问。
If the use of that variable spans multiple activities, you define the variable at the workflow level so that any element can access it.
如果该变量的使用扩展到多个活动,您可以将变量定义为工作流级,这样任意元素都能访问它。
It is also possible to access and change a test variable through custom code.
通过通用代码来访问和更改测试变量,也是可能的。
The rationale for this is that the event handler must be able to access the variable that holds the incoming message.
这样做的根本原因是,事件处理程序必须能够访问保存传入消息的变量。
For method calls, I tried the same three access variations as for field access, with the added variable of using no-argument methods versus passing and returning a value on the method calls.
在方法调用中,我试用了与字段接入相同的三种接入变量,并增加了使用无参数方法变量,而不是在方法调用中传递和返回一个值。
To make this method a little easier, I wrap the access to the variable in a second function that takes a configuration key name and a default value, as shown below.
为使这个方法更加简单,将对变量的访问封装在第二个函数中,该函数使用配置键名及一个缺省值作为参数,如下所示。
Instead of checking for a default compound value, you can also catch the access to an undefined variable. E.g.
不用再检查默认的复合值,您也可以捕获对未定义变量的访问。
This will result in PHP reporting a warning every time an uninitialized variable is used, each bad file access, and other (mostly) harmless errors, but might also represent a potential attack vector.
设置更改后,每当使用未初始化的变量、进行错误的文件访问及发生其他(大多数)无害错误时,PHP都会报告一条警告消息,但也存在这是一个潜在攻击矢量的可能性。
On the other hand, if you choose to access row data through the value binding, then you must consult the JSF variable resolver.
另一方面,如果选择通过值绑定访问行数据,则必须咨询J SF变量解析器。
In this example, variable substitution is used for the ID in case your code needs to access the button through its ID.
在本例中,为了防止代码通过其ID访问此按钮,用变量替换了此ID。
You can use this variable to return users to the login page, a corporate portal page, or a customized exit page for Domino Web Access.
可以使用这个变量使用户返回登录页面、公司门户网站页面或定制的DominoWebAccess退出页面。
This variable allows access to name lookup views in the Domino Directory during the view index process.
这个变量允许在视图索引过程中访问DominoDirectory中的名称查询视图。
Additionally, you can access the variable concept.
另外,还可以访问变量concept。
For example, you can access parameters passed to scripts on the command line using the sys.argv variable.
例如,可以使用sys. argv变量在命令行中访问传递给脚本的参数。
For example, Groovy doesn't require semicolons, and it makes variable types and access modifiers optional.
例如,Groovy不要求使用分号,变量类型和访问修饰符也是可选的。
You access them as you would any other Vue script variable, except for a small change.
访问它们的方法与访问其他Vue脚本变量差不多,只有一个小差异。
This business object encapsulates the Notes document in a private instance variable inherited from the BOEntity class, so any direct access to this document and its items is prevented.
而这个业务对象在从boentity类继承的一个私有实例变量中封装Notes文档,这样可以保护任何对该文档及其项的直接访问。
The var attribute defines a variable named row, which is used to access the current row's data during rendering.
var属性定义一个变量,称为row,可用来在呈现期间访问当前行的数据。
Furthermore, deleted rows are skipped unconditionally on table scan access while deleted keys are not skipped for type-2 index scans unless the registry variable DB2_SKIPDELETED is also set.
而且,虽然在type - 2索引扫描中,被删除的行不会被跳过,但是除非同时设置了注册表变量db2_skipdeleted,否则在表扫描访问中,被删除的行将被无条件跳过。
The channel variable used to access the RSS channel information (description for example).
用于访问RSS通道信息的channel变量(例如,description)。
Once you set BuildRoot, you can access its value using the RPM_BUILD_ROOT environment variable.
一旦设定了BuildRoot,就可以使用RPM_BUILD_ROOT环境变量访问其值。
If the FacesContext isn't available, then the variable resolver can't access any of the Spring beans.
如果FacesContext不可用,则变量解析器就不能访问任何的Springbean。
应用推荐