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”这样的注释。
The function can also return a value (or, more formally, an object), including a Python container like a tuple.
函数还可返回值(更为正式的说法是:对象),包括像tuple这样的python容器。
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 first mistake that nonnative speakers make is to return a value indicating an error, instead of throwing an exception.
非原生语言使用者的第一类错误是返回一个表示错误的值,而不是抛出异常。
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。
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要求函数(在本例中为一个方法)必须始终返回一个值。
These are parameters that can both receive a value for input and return a value for output. For example, consider the following class.
有些参数既可以接收输入值,也可以返回输出值。
This means that the encapsulated method must have 12 parameters, each of which is passed to it by value, and that it must return a value.
也就是说,封装的方法必须具有12个均通过值传递给它的参数,并且必须返回值。
This means that the encapsulated method must have 10 parameters, each of which is passed to it by value, and that it must return a value.
也就是说,封装的方法必须具有10个均通过值传递给它的参数,并且必须返回值。
Static methods that merely accept an argument or two, perform a calculation, and return a value based on nothing but those arguments are ideal.
仅接受一两个实参、执行计算,并仅依据那些实参返回值的静态方法是理想的。
This means that the encapsulated method must have six parameters, each of which is passed to it by value, and that it must return a value.
也就是说,封装的方法必须具有六个均通过值传递给它的参数,并且必须返回值。
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.
在该方法中,可以返回值或直接在内存中操作表单。
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.
我们认为不返回值的查询实际上返回一个值;即一个整数,其中包含受查询影响的行数。
This means that the encapsulated method must have nine parameters, each of which is passed to it by value, and that it must return a value.
也就是说,封装的方法必须具有九个均通过值传递给它的参数,并且必须返回值。
This means that the encapsulated method must have five parameters, each of which is passed to it by value, and that it must return a value.
这表示封装的方法必须有五个参数,每一个都以值传递至这个方法,且方法必须传回值。
This means that the encapsulated method must have eight parameters, each of which is passed to it by value, and that it must return a value.
这表示封装的方法必须有八个参数,每一个都以值传递至这个方法,且方法必须传回值。
This means that the encapsulated method must have seven parameters, each of which is passed to it by value, and that it must return a value.
这表示封装的方法必须有七个参数,每一个都以值传递至这个方法,且方法必须传回值。
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。
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。
应用推荐