在早期版本中,它将生成的函数in _ word_set返回的默认布尔值(即0或1)修改为pointerto wordlist array类型。
In earlier versions, it changes the return value of the generated function in_word_set from its default Boolean value (that is, 0 or 1) to the pointer to wordlist array type.
教授2:因此这并不是一个,真正的布尔值的函数。
为了避免这个问题,应当在构造函数中初始化复杂属性;然而,对于字符串、布尔值等简单属性则不需要这样做。
To avoid this problem, complex attributes should be initialized in the constructor; however, this is not necessary for simple attributes such as strings, booleans, and so on.
到目前为止,该系列文章一直关注单个标量函数(数值、字符串和布尔值)的使用。
So far in this series of articles, we've been restricted to the use of single scalar values (Numbers, strings, and booleans).
它的构造函数接收布尔值,确定是否创建新索引,或者打开现有索引。
Its constructor accepts a Boolean that determines whether a new index is created or whether an existing index is opened.
清单1显示了一个简单的例子,它声明了一个包含6个属性的hash:一个字符串、一个整数、一个布尔值、一个未定义的属性、另一个hash和一个函数。
A simple example is shown in Listing 1, declaring a hash consisting of 6 attributes: a string, an integer, a Boolean, an undefined attribute, another hash, and a function.
另外,empty和exists函数返回的布尔值可以帮助迅速判定序列是否有成员。
Also, the empty and exists functions, each returning a Boolean value, quickly tell you whether a sequence has members.
其返回的布尔值用于指出该函数是否应当加入到报告之中,让不感兴趣的数据被抑制掉。
The Boolean value returned will indicate whether the function should be included in the report, allowing the less interesting data to be suppressed.
然而,现在我们在测试过程中只能够传递一个布尔值false给构造函数,以避免调用init方法和所有不必要的初始化逻辑。
However, now we can just pass a Boolean false to the constructor during our tests to avoid calling the init method and all the unneeded initialization logic.
filter函数为列表的每个元素调用一个测试函数,测试函数返回布尔值,当测试函数返回True时,还包含列表的元素。
The filter function calls a test function, which returns a Boolean, on each element of a list and includes that element only if the test function returns True.
而且,该函数返回布尔值,因为为gtk Widget定义的delete - event信号的回调原型指明的是布尔返回值。
Also, the function returns a Boolean value because the callback prototype for the delete-event signal defined for GtkWidget states a Boolean return.
例如,Scala中的每个值都是一个对象,包括基本数据类型(即布尔值、数字等)在内,连函数也是对象。
For example, every value in Scala is an object, this includes basic data types (i.e. booleans, Numbers) as well as functions.
用红宝石的宝石协会,它是可能的定义不是(!)警惕的函数返回一个布尔值算子?
With Ruby gem aasm, is it possible to define the not (!) operator on guard functions that return a Boolean result?
函数也可以返回布尔值,这种情况便于隐藏函数内部的复杂测试。例如。
Functions can return booleans, which is often convenient for hiding complicated tests inside functions. For example.
避免在条件中直接调用返回布尔值的函数。把返回值赋值给一个局部变量来使用。
Avoid function calls in Boolean conditional statements. Assign into local variables and check on them.
该切换函数将返回一个新的布尔值,如果它被点击。
The Toggle function will return a new Boolean value if it is clicked.
该切换函数将返回一个新的布尔值,如果它被点击。
The Toggle function will return a new Boolean value if it is clicked.
应用推荐