Listing 2. Proper handling of the read API function return value.
清单2.适当处理readapi函数的返回值。
Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.
正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回。
The return value of any function is the result of the last expression in that clause (in our examples there is only one line).
任何函数的返回值都是子句(在我们的示例中只有一行)中最后一个表达式的结果。
Values of these types can come from the input document of a transformation, if schema awareness is in effect (see Schema awareness further ahead), or as the return value of a function.
如果启用了模式感知(参阅后面的 模式感知),这些类型的值可以来自转换的输入文档或者函数的返回值。
A callback function is passed to the method when it is invoked to capture the return value.
当该方法被调用来获取返回值时,一个回调函数会传递给此方法。
This function, though, does not return the value of the attribute; instead, it returns an integer request ID.
但是,该函数并不返回属性的值;相反,它返回一个整数请求ID。
Tracing of exit/return value of a function is possible by applying trace hook at exit point and specifying function prototype.
通过在出口点应用跟踪钩子并指定函数原型,可以探测函数的退出/返回值。
If the method on the server-side component has a non-void return value, that value is passed into the callback function as its only argument.
如果服务器端组件上的方法具有非空返回值,该值就会作为其惟一的实参传递进此回调函数。
When the server receives the request from the client, the server executes the local function and returns the return value for the function to the client.
当服务器从客户端收到请求后,服务器执行本地函数,并将该函数的返回值返回给客户端。
For each ODBC function invoked, a special value known as a return code is returned to the calling application.
对于每个被调用的odbc函数,都要向调用它的应用程序返回一个值,该值就是所谓的返回代码。
The only thing that you have to put in the function prototype, again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字,返回值,和它的参数。
The response from the server is sent back as another XML-encoded, SOAP envelope, this time with the return value from the function.
服务器通过另一个 XML编码的SOAP信封返回响应,这一次是函数的返回值。
Therefore, it cannot retrieve the return value of a function.
因此,不能获取函数的返回值。
What is worth noting is that all the fields are placed in the return value of the function.
值得注意的是所有字段都放在函数的返回值中。
ERANGE — You've called a function, and the return value is too large to be represented by the return type.
ERANGE:您已调用函数,但返回值太大而无法通过返回类型来呈现。
This function will look at the CARDS in the hand and return the total value of the hand.
该函数将查看手中的牌并返回手上的牌面总值。
And then the only other difference is obviously, it's a function I need to return a value.
然后还剩下一点明显的区别,对于方法我要有返回值。
The value of the last expression is the default return value of a function.
最后一个表达式的值是默认的返回值。
Call the function, and store the return value in a variable.
调用这个函数,然后将返回值存储到一个变量中。
probev_timestamp_t is a special data type used to return the value from the VUE timestamp function.
probev_timestamp_t是一种特殊的数据类型,用来从VUE时间戳函数返回值。
To call a function and use its return value as part of a larger expression, simply name it and append a parenthesized argument list.
要调用函数并使用它的返回值作为语言表达式的一部分,只需要命名它并附加一个使用圆括号括起的参数列表。
In the Fibonacci sample given above, running the printfibo function in another process produced no useful return value.
在上述Fibonacci样例中,在另一个进程内运行printfibo函数不会得到有用的返回值。
The first example illustrates calling a Scheme function from C, passing in an argument, and capturing the return value.
第一个例子演示如何从C调用一个Scheme函数,传入一个参数,并捕获返回值。
You can include none at all if the function is being used as a procedure and has no useful return value.
如果函数被用作一个过程,并且没有任何有用的返回值,那么可以不包含return语句。
One special function called atomic_add_negative is used to add to the atomic variable and then return true if the resulting value is negative.
一个叫做 atomic_add_negative 的特殊函数被添加到原子变量中,然后当结果值为负数时返回真(true)。
The return value of the function is specified with a return statement.
函数返回值使用return语句指定。
The function can also return a value (or, more formally, an object), including a Python container like a tuple.
函数还可返回值(更为正式的说法是:对象),包括像tuple这样的python容器。
Which is how you call a function in Vimscript when you intend to ignore the return value.
这就是希望忽略返回值时,在Vimscript中调用函数的方式。
A special built-in variable, __arg3, is used to capture the return value from a function.
使用一个特殊的内置变量__arg 3捕捉函数的返回值。
And the reason that we now on the second line have the equal sign is because this function GetString has what's called a return value.
我们之所以,在第二行代码GetString前面加上等号,是因为这个函数会带回一个,返回值。
应用推荐