下面一个选项是改变返回值类型。
你也可以改变返回类型。
所有这类方法都返回一个新字符串,而从来不会改变消息的接收者。
All of these types of methods return a new string, never changing the receiver of the message.
这样使得操纵返回地址困难多了,但它不会阻止改变调用函数的数据的缓冲区溢出攻击。
This makes it much harder to manipulate the return address, but it doesn't defend against buffer overflow attacks that change the data of calling functions.
因此要避免重大改变,输出服务实现将在返回之前从新数据类型转变为旧数据类型。
So to avoid a major change, the output service implementation will have to convert from the new data types to the old data types before returning them.
给它一个电压,它会返回根据不同组合连接器上的外界温度而不断改变的另一个电压。
Give it a voltage and it returns another voltage that varies consistently according to the ambient temperature on a different combination of connectors.
在返回时,仅返回OUTPUT和ERROR容器(如果发生错误的话),因为INPUT没有改变,所以不需要返回它。
On returning, only the OUTPUT and error containers (if any error has happened) are returned, because the INPUT container is unchanged and need not be returned.
这就产生了一个重要的结果,只要一个聚合的任何组件发生了改变,这一聚合将在下一次拉出聚合Feed时被返回。
The important result is that if any of the components of an aggregate change, the aggregate is returned the next time the aggregate Feed is pulled.
这对大多数程序员而言是很不直观的,他们通常希望sort和reverse等函数返回原始数据的修改副本,而不改变原始数据本身。
This is highly counterintuitive for most programmers, who typically expect functions like sort and reverse to return modified copies of the original data, without changing the original itself.
如果检查一个返回值或者调用一个API来改变设置会更简单,那么就深入下去,停止在UI上浪费时间了。
If it is easier to check a return value, or call an API to change a setting then go deep... and stop messing around on the surface.
对于大部分搜索引擎api而言,返回的搜索项数目是可配置的。因此,只要对此接口进行改进使其支持该特性,便可以改变results节点的数目。
For most search engine APIs, the number of search items returned is configurable, so the number of results nodes could change if this interface were enhanced to support that feature.
好的,toupper的返回值,也就改变了这个。
Well, the return value of toupper so that literally changes this.
每个。htm文件将被EtagContentFilter过滤,如果页面自上次客户端请求后没有改变,它将返回一个空内容体的HTTP响应。
Every.htm file will be filtered using the EtagContentFilter, which will return an empty body HTTP response if the page has not changed since the client last requested it.
由于我们只是跳转到同一个函数,所以返回地址和旧的%ebp是相同的,栈的大小也不会改变。
Because we are just jumping into the same function, the return address and old % ebp will be the same and the stack size won't change.
因此,我们需要staff - oriented流程,执行它我们就可以看到数据,根据需要改变它,然后返回协作。
Therefore, we require a staff-oriented process that we can execute to view the data, alter it as necessary, and return to the collaboration.
Ajax的两个关键是请求服务器而不需改变浏览器中查看的页面和可以从服务器返回XML数据。
Two of the key components of Ajax is that you can make requests to the server without changing what page you are viewing in the browser and you can get XML data back from the server.
“inviteuser”表单提交到 /invitation/do_edit/——这是应用改变并将用户返回到适当页的标准“back-end”记录创建和编辑方法。
The "invite user" form submits to /invitation/do_edit/ -- this is the standard "back-end" record creation and editing method that applies the changes and then returns the user back to a sensible page.
即使数组是动态改变的,equalize函数照样可以返回它的数组。
Even though arrays are mutable, the function equalize returns its array. This is useful if you only want to equalize a copy of the model.
然后,当用户改变了基本资料,我们必须返回去将这一变化持久化。
Then, when the user changed the profile, we had to go back and persist the change.
无疑地,正如本文所展示的,缓存可以改变定位器的返回结果,因此就改变了应用程序的行为。
Clearly, as this article shows, caching can change the results from the locator and thus the behavior of the application.
换句话说,我会返回一个303响应,重定向回VM状态,这样客户端就知道状态已经改变了。
In other words, I would return a 303 response that redirected back to the VM status, so that the client would know that the state has changed.
我们所能得到的结果是他们在加蓬反之后返回觅食区的路径有三条,尽管他们的数量逐年发生改变。
What we've shown is that there are three clear migration routes as they head back to feeding grounds after breeding in Gabon, although the Numbers adopting each strategy varied each year.
我们所能得到的结果是他们在加蓬反之后返回觅食区的路径有三条,尽管他们的数量逐年发生改变。
'What we've shown is that there are three clear migration routes as they head back to feeding grounds after breeding in Gabon, although the Numbers adopting each strategy varied each year.
可以在构造函数中设置所需要的装配器,但是当装配器改变时需要返回一个普通ModelMBean。
I can set the assembler I want in the constructor, but I need to return a normal ModelMBean if the assembler is changed.
在第3部分中,Eric重新命名了一个列,但是后来改变了主意,并返回到CVS中项目的版本。
In Part 3, Eric renames a column, but changes his mind and reverts back to the version of the project in CVS.
像这样的函数,我们称为纯函数,因为他们不要视图改变他们的输入,并且总是返回同样的输出通过输入同样的参数。
Such functions are called "pure" because they do not attempt to change their inputs, and always return the same result for the same inputs.
清单6将Web角色从一个静态的定义改变为由my _ instances功能返回的服务器动态清单。
Listing 6 changes the Web role from a static definition to a dynamic list of servers returned from the my_instances function.
换句话说,如果调用了改变atom值的函数,那么当该函数结果返回时,可以确保所有的线程都能看到新值。
In other words, if you call a function that changes the value of an atom, then when that function returns, you are guaranteed that all threads will see the new value.
Holder实例的内容(而不是实例本身)被调用它的程序所修改,Client使用的是调用返回后(有可能)改变了的内容。
The contents of the holder instance (but not the instance itself) are modified by the invocation, and the client USES the (possibly) changed contents after the invocation returns.
运算符不会改变原本的数据,而是返回一个新的序列,这个序列会返回相应的数据;
Operators don't mutate the original source, but instead return a new sequence which will return the appropriate data
应用推荐