学习理解匿名数组引用和解除数组元素引用的Perl符号。
Learn to understand the Perl notation for anonymous array references and dereferencing array elements.
若要获取数组中的值,您可以指定数组引用(请参见清单15)。
To get a value out of the array, specify the array reference (see Listing 15).
在清单5中,我们在调用期间动态地构建了数组引用,然后在打印结果时使用OID作为散列键。
In Listing 5 we build the array reference dynamically during the call, and then use the OID as the hash key when printing out the result.
通过简单地复制而不是克隆数组引用,消息和产生消息的类都保存了前一投标数组的主副本的一个引用。
By simply copying the array reference instead of cloning it, both the message and the class that produces it hold a reference to the master copy of the previous bids array.
注意subproblem方法没有复制这些元素;它只是将数组引用和偏移复制到一个现有的数据结构中。
Note that the subproblem method does not copy the elements; it merely copies the array reference and offsets into an existing data structure.
AppConfig 的get()方法可以用来得到各个参数的值;由于感兴趣的参数总是数组引用,我自动地对它们进行解引用。
The get() method of AppConfig can be used to get the value of an individual parameter; because the parameters of interest are always array references, I automatically de-reference them.
(这将禁止具有数组值的属性,因为当数组引用被声明为volatile 时,只有引用而不是数组本身具有 volatile 语义)。
This prohibits having array-valued properties, as when an array reference is declared volatile, only the reference, not the elements themselves, have volatile semantics.
所有节点都创建成临时(或轻量级)对象,按要求构造成对这些数组的引用,并在不再需要时废弃。
All nodes are created as transient (or flyweight) objects, constructed on demand as references into these arrays and discarded when they are no longer needed.
为了实现您老板的第一个要求(将子元素转换为属性),需要替换对数组的引用,如清单10所示。
To achieve your boss's first objective, which is to convert elements to attributes, you need to replace references to arrays, as shown in Listing 10.
目前不支持访问数组、实例变量和对象引用。
Accessing arrays, instance variables, and object references are not supported as of now.
向量本质上是作为标量值进行处理的,而数组是作为引用来进行操作的。
Vectors are treated essentially as scalar values, while arrays are manipulated as references.
数组越大,所创建的本地引用就越多。
The larger the array, the more local references will be created.
使得消息类不可变并在构造时克隆像数组这样的可变引用,就可以防止该问题。
Making the message classes immutable and cloning mutable references such as arrays at construction time would have prevented this problem.
该切片所引用的数组分段可以通过将新的切片赋值给同一变量来更改。
The segment of the array that the slice references can be changed by assigning a new slice to the same variable.
WasteIn CharArrays查询能够显示字符串所引用的字符数组中浪费的空间。
The waste in char arrays query shows the amount of wasted space in character arrays that are only referenced by strings.
每次通知shell被打开,我们在静态的shell数组中保留一个引用。
Every time a notification shell is opened, we keep a reference of it in a static array of shells.
该方法的参数包括微格式名称、搜索的文档引用和可选的参数数组。
This method accepts a microformats name, a document reference to start the search from, and an optional array of parameters.
这意味着需要充分了解引用、散列和数组在Perl中的交互作用。
This means that you need a solid understanding of the interaction of references, hashes, and arrays in Perl.
为此,要遍历结果数组,每次获取一个单独元素的引用并检索它的属性。
To do that, you go through the results array, each time getting a reference to the individual element and retrieving its attributes.
如果不使用引用,就需要将整个数组或hash 表复制到该函数的调用栈中,然后在函数中再次对其进行复制。
Without a reference, you copy the entire array or hash onto the function call stack, and then copy it again in the function.
如果使用大型数组或hash表,并使用它们作为函数的参数,那么应该使用它们的一个引用,而不应该直接使用它们。
If you work with large arrays or hashes and use them as arguments to functions, use a reference instead of the variable directly.
colors属性接受对包含有位置-颜色对的一个数组的引用。
The -colors attribute accepts a reference to an array containing pairs of positions and colors.
清单2.使用对一元素数组的最终引用欺骗编译器。
Listing 2. Faking out the compiler with a final reference to a one-element array.
当您请求变量值时,AppConfig对象将给您数组或散列引用。
The AppConfig object will give you an array or hash reference when you ask for a variable's value.
为此,您可以使用Ruby中的hash类,它允许您创建键值对(类似于数组),但是随后可以轻松地通过键引用它们。
For this purpose, you use the hash class in Ruby, which allows you to create key-value pairs (in what appears to be an array), but then easily reference them later by key.
即便使用Critical版本,也无法保证您能获得对数组或字符串的直接引用。
There's no guarantee that you will actually get a direct pointer to the array or string even when using the Critical versions.
通常,一个切片就是一个程序所需要的全部了,在这种情况下,程序员根本用不着一个数组,Go有两种方式直接创建切片而不用引用底层存储。
In that case, a programmer need not have an array at all. Go offers two ways to make slices directly without ever referencing the underlying storage.
哪怕及时释放掉了实际的对象,但WPF的弱引用数组还是会继续持有引用,这就导致了内存泄漏。
Even when the actual objects are being released in a timely manner, WPF's arrays of weak references hang around and under stress become the memory leak.
数据库的作用是长时间持久化数据,但这是通过包含这些对象的数组实现的,而不是不断地引用数据库。
The role of the database is to persist the data over time, though manipulation is done via an array containing these objects, rather than referring to the database continually.
再回到load_slides,要注意它引用了一个名为g_directions的数组。
Getting back to load_slides, notice that it references an array called g_directions.
应用推荐