Here's a generic loop function making recursion easier to use.
这里是一个通用的循环函数,它使得递归使用起来更加容易。
Loop function barrier, according to infectiousness shock management.
循环功能障碍者,按感染性休克处理。
It holds the activation records (i.e. stack frames) of native code, and VM code including the interpreter loop function.
它掌握本地代码的活动记录(堆帧stack frames),VM代码包括解释器循环功能。
The core of the process is the loop function that is called each time a request is received by the main MochiWeb system.
进程的核心是loop函数,MochiWe b主系统每次接收到一条请求时都会调用此函数。
The function then provides a loop that does precisely that.
然后函数提供一个循环,准确地完成这一工作。
All of the above solutions use a simple loop to wait and handle requests, before dispatching the request to a separate function to handle the actual network interaction.
上面的所有解决方案都用简单的循环等待并处理请求,然后把请求分派给另一个函数以处理实际的网络交互。
With such plumbs, you can target the statement, loop, function, class, or library that is most sluggish.
有了这种垂直度,就可以将语句、循环、函数、类或者是运行缓慢的库作为分析目标。
For this reason, excessive function calls in a loop are generally a bad idea.
由于这个原因,在一个循环中使用太多函数调用不是个好主意。
For example, implementing a replay function in this kind of game loop is easy.
比如,在这样的游戏循环下实现一个重播的函数并不难。
The function accepts three arguments, and performs some simple tests on the values to ensure that the function will not start an infinite loop.
该函数接受三个参数,然后对这些值进行一些简单的测试,以确保函数不会开始一个无限循环。
Let's take a look at a common loop for printing reports and see how it can convert into a recursive function.
让我们来研究一个打印报表的常见循环,了解如何将它转化为一个递归函数。
When we converted our loop to a recursive function, the recursive call was the last thing that the function did.
当我们将循环转化为递归函数时,递归调用是函数所做的最后一件事情。
And what's this little loop say to do? This little loop says I'm going to write a function or procedures that takes in two messages.
这个小循环是做什么的,这个小的循环是,我要写一个函数或者过程来接受两条消息。
Converting a common loop to a recursive function.
将一个常见的循环转化为递归函数。
In that case, a better solution is to pass setMeta() a two-dimensional array with name-value pairs and have the function loop through it -- performing all the activities simultaneously.
在这种情况下,更佳的解决方案是将带有名称-值对的两维数组传递给setMeta() ,并且让函数循环执行该数组 — 同时执行所有操作。
The server function then implements the Web server loop.
然后服务器函数实现Web服务器循环。
Note that, although the insecure function tempnam (3) is being used, it is wrapped inside a loop using O_CREAT and O_EXCL to counteract its security weaknesses, so this use is OK.
注意,尽管使用了不安全的tempnam(3)函数,但是它被包装在循环中,并使用了O_CREAT和O_EXCL选项,从而抵消了它的安全弱点,所以这样做是可以的。
This function is optimized as a very tight loop using string instructions with the repeat prefix.
使用带有repeat前缀的字符串指令将该函数优化成一个非常紧密的循环。
A simple example is a loop that computes a particular function for multiple arguments, such as the following Fortran program.
一个简单的例子就是为多个论断计算特定函数的循环,例如接下来的Fortran程序。
When everything is set up and visible, the gtk_main() function activates the main loop.
当诸事就位,而且显示出来之后,gtk_main()函数就激活主循环。
If there are multiple requests, loop through the array of requests and call the doRpc function for each one.
如果有多个响应,通过请求数组循环,为每一个调用dorpc函数。
Notice that then, in the body of the loop, I use callback to invoke the passed parameter function object.
然后请注意,在循环体中,我使用callback来调用传递的参数函数对象。
No need to loop over the elements; the click() function takes care of that.
无需对元素进行循环,click()函数将完成这些操作。
Pyrex's enhanced for probably speeds it up slightly, but the whole function is mainly the loop.
虽然pyrex改进后的for循环可能有一点加速,但是整个函数主要是一个循环。
The main function creates a Glib event loop, gets a connection to the session bus, and integrates the D-BUS event handling into the Glib event loop.
main函数创建一个Glib事件循环,获得会话总线的一个连接,并将D -BUS事件处理集成到Glib事件循环之中。
The fitness function is similar to the one from the original example, but the reward structure is different and the loop is actually simplified.
fitness函数与最初示例中的相似,但“奖赏”的结构有所不同,而且循环实际上也进行了简化。
Note at the end of the loop that I recursively call the same function with an argument that is one greater than the previous, implementing the iteration of the loop.
注意,在循环的结尾处,我用一个比上次大1的参数递归地调用同一个函数,以实现循环的迭代。
Then it states that it would like to be notified when signals with the com.burtonini.dbus.Signal interface are sent, sets signal_filter as the notification function, and enters the event loop.
然后它声明愿意当具有com. burtonini . dbus . signal接口的信号被发送时得到通知,将signal_filter设置为通知函数,然后进入事件循环。
Earlier in the article I rewrote the main conversion function in c, and now I am going to rewrite the main loop in c. the new code is fairly straightforward (enter as convert_driver_c.c).
在本文开头我使用c语言重新编写了主转换函数,现在将使用c语言重新编写主循环。
Within the loop, we extract the value for the iterated key, and then we attempt to set that value into the bean through reflection, using the helper function defined in the PBHandler class.
在循环内部,我们为遍历到的键提取值,然后使用在PBHandler中定义的helper函数通过反射将该值放置到bean中。
应用推荐