We could define the callback function in the same code block, but with a name.
我们可以在同一个代码块中定义回调函数,但是使用一个名称。
The controller can specify a code block for each type the controller expects.
控制器可以为控制器期望的每个类型指定一个代码块。
So, you can access the process variables from any code block.
因此,你可以从任何代码块访问流程变量。
The next line starts a code block that dictates what happens when each client connects.
下一行开始一个代码块,规定当每个客户端连接时要做的事情。
The method takes a parameter, specifying the length of the timeout, and a code block, specifying which content to rebuild when the content expires.
此方法接受参数,用来指定超时的时长,它还接受一个代码块,用来指定当内容过期时哪些内容需要重建。
Consult the next section for the code block that sets each frame when the mouse is down.
参考下一节中的代码块,它会在鼠标按下时设置各帧。
As with the previous code block, a pattern emerges.
在以上代码块中,出现了一种模式。
Note the actions enclosed in { } braces, like a normal code block.
注意像普通的代码块那样封装在大括号 { }内的动作。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
The open and close brackets ([and]) mark the beginning and end of the code block, respectively.
开方括号和闭方括号([和])分别标志代码块的开始和结束。
Everywhere a match can be found, an action (code block) can be executed.
每发现一个匹配对象,就会执行一个动作(代码块)。
The configuration portion is the final code block in Listing 6.
配置内容包含在清单6中的最后一个代码块。
Think of a closure as a code block that you can use as an argument, with special scoping rules.
闭包可被视作一个遵循特别作用域规则且可以用作参数的代码块。
In cases where synchronization is necessary, the synchronized code block should be minimized.
在有必要进行同步的场合下,应该尽量缩小同步代码块。
In this example, the code block is iterated until the loop is broken through the condition.
在此示例中,代码块迭代,直至循环根据条件而中断。
This synchronized code block acquires the lock associated with the customer class object before it executes.
同步的代码块在执行之前需要与客户类对象相关的锁。
Comments in the code block above indicate the points at which these actions are performed.
代码块上的注释指明了在哪里这些操作会被执行。
The ampersand identifies the parameter as the holder of a code block.
该符号将参数识别为代码块的持有者。
The longer a synchronized code block requires for execution, the longer other threads wait to enter that block.
同步代码块所需的执行时间越长,其他线程等待进入该代码块的时间就越长。
Code block: it allows you to format text as code blocks. Simple select the text and format it by clicking the "code block" ToolBar button.
代码块:这个编辑器允许你把文本格式化为代码块,只要简单地选中文本,然后点击“代码块”按钮来进行格式化即可。
At some point, you're going to have to face that massive code block and call it your own.
随后的某一时刻,您必须面对大量代码块并将它们搞定。
The code between brackets is called a closure, or code block.
括号中的代码叫做闭包或代码块。
There will be an else code block that will follow this with the initial form code in it.
还有其他代码块在其中跟随初始表单代码。
That code block does nothing but increment the value of the local variable and return it.
代码段做的事就是增加本地变量的值并返回。
You pass the before method an optional symbol and a code block.
您向before方法传递一个可选的标志和一个代码块。
The first extension that Ruby adds to the simple code block is an argument list.
Ruby添加到这个简单代码块的第一个扩展是一个参数列表。
In Listing 6, I create a composite code block that composes two functions.
在清单6中,我创建了一个由两个函数组成的composite代码块。
The additional line exhibits one of my favorite features of Ruby, the code block.
附加的行展现出了Ruby中我最喜欢的特性之一,代码块。
For each case, you pass a code block that fires a Squeak method.
针对每种情况,传递一个代码块,它触发一个Squeak方法。
In Listing 4, I define product as a code block accepting two parameters.
在清单4中,我将product定义为一个代码块,它接受两个参数。
应用推荐