You can invoke methods that return a value in the EGL Resources API as follows.
您可以在如下的EGLResourcesAPI中调用返回一个特定值的方法。
Here the term UDR is used generically to refer to functions that return a value.
这里的udr一词通常用来指代返回值的函数。
A method with a side effect can return a value but also changes the program's state.
有副作用的方法可能返回一个值,但同时也修改了应用程序的状态。
It will simply return a value of 0 as the key to the trade order without changing the database.
它只是返回一个值0作为交易订单的键,而不会更改数据库。
As a result, for Sybase Version 12.0 data source, you cannot return a value of an output parameter.
因此,对于Sybase 12.0版数据源,不能返回输出参数的值。
And you don't need a comment before the return statement saying, "Now we return a value," either.
同样,在返回语句之前也不需要使用类似“Nowwereturn a value”这样的注释。
These Value methods return a Value object and they add the value to the enumeration’s collection of values.
这些Value方法返回一个Value对象,它们会把这些值加到枚举值的集合中去。
The adapter method can report the error in detail and return a value indicating that the error was handled.
这个配接器方法可以报告错误的详细资料,并会传回表示错误已经处理的值。
Note that we specify HANDLESNULLS so that IDS allows our function to return a value when the column value is NULL.
注意,我们指定了HANDLESNULLS,因此,当列值为NULL时,IDS将允许函数返回一个值。
The function can also return a value (or, more formally, an object), including a Python container like a tuple.
函数还可返回值(更为正式的说法是:对象),包括像tuple这样的python容器。
This can be a pain at first — some programmers don't realize that printf and many other functions actually return a value.
起初,这可能是一个痛苦的问题——有些程序员并没有认识到printf和很多其他函数实际上也会返回一个值。
However, Vimscript functions always return a value, so if no return is specified, the function automatically returns zero.
然而,Vimscript函数始终返回一个值,因此如果没有指定任何return,那么函数将自动返回0。
The first mistake that nonnative speakers make is to return a value indicating an error, instead of throwing an exception.
非原生语言使用者的第一类错误是返回一个表示错误的值,而不是抛出异常。
In this code, you can't return a value, so you must add the newly created toppings panel to the parent as part of this method.
在这段代码中,不能返回值,因此必须将新创建的Toppings面板作为此方法的一部分添加到父面板中。
As with other traditional functional languages, Scala requires that functions (in this case a method) must always return a value.
与其他传统函数语言一样,Scala要求函数(在本例中为一个方法)必须始终返回一个值。
In many cases, if not all, you want to generate your own faults when errors happen; otherwise, the Web service cannot return a value.
在很多情况下(即便不是所有的情况),您都希望在错误发生时生成自己的故障,否则Web服务无法返回值。
These are parameters that can both receive a value for input and return a value for output. For example, consider the following class.
有些参数既可以接收输入值,也可以返回输出值。
Static methods that merely accept an argument or two, perform a calculation, and return a value based on nothing but those arguments are ideal.
仅接受一两个实参、执行计算,并仅依据那些实参返回值的静态方法是理想的。
Queries that we think of as returning no value actually do return a value - an integer containing the number of rows affected by the query.
我们认为不返回值的查询实际上返回一个值;即一个整数,其中包含受查询影响的行数。
In this class, you manipulate the server data and return a value to the client (or throw an exception, but let's stay optimistic for the moment).
在这个类中,将操作服务器数据并将值返回给客户机(或者抛出异常,但是此刻先让我们乐观一些认为不会出现这种情况)。
Is it better to have one method which can return a value irrelevant to the objective of the method or two separate methods named accordingly?
最好是有一个方法可以返回一个值无关的目标的方法或两种不同的方法,据此命名?
Within the method, you can either return a value or manipulate the form in memory directly. The following is an example of the evaluate method.
在该方法中,可以返回值或直接在内存中操作表单。
And so while you needed expressions for math to work, there was no point in making anything else return a value, because there could not be anything waiting for it.
所以,如果你需要用数学式子计算一个值,那就只有用表达式返回这个值,没有其他语法结构可用,因为否则就无法处理这个值。
And since example 2 does not have a return value labeled, the sequence does not return a value (presumably, the sequence being modeled does not need the return value).
因为例子2没有返回值标签,序列不返回值(假设,建模的序列不需要返回值)。
A context is simply the variables and functions that are needed by the expression to return a value, and are assigned to the identified included inside the Symbol Table.
上下文是简单的变量和表达式所需的函数,将返回一个值,并且赋值给标识,包括在符号表中的。
If no index is found, then there are no cached tweets, so there is nothing to show and no optimization can be made on the query (and you return a value of 0 to indicate this).
如果没找到任何索引,那么就没有缓存的tweet,所以就没有展示的东西,并且没有可对查询进行的优化(您返回一个0值以指示这一点)。
You should take care to return a value of the right type and to only throw exceptions declared by the method; otherwise, the Proxy implementation will raise a RuntimeException.
应该小心地返回适当类型的值,并且只抛出由方法声明的异常;否则,Proxy实现将抛出一个RuntimeException。
The more imbalanced we become due to overworking, the more value there is in activities that allow us to return to a state of balance.
我们越是由于过度工作而变得失衡,那些能让我们调整回平衡状态的活动就越有价值。
A null return value implies all active slices, while an empty array will raise an exception.
空返回值意味着所有片都是活动的,而空数组则会引发一个异常。
The mapping is case insensitive and only matches if the method has a return value and no input parameters.
映射区分大小写,只有当方法拥有一个返回值而且没有输入参数时才能匹配。
应用推荐