每个块都是作为一个匿名函数体来执行的。
Each chunk is executed as the body of an anonymous function.
因为它没有函数体,所以称之为抽象。
添加标记函数体开头的左大括号。
Add the left brace that marks the beginning of the function body.
函数体可以有任意长度的语句。
你想在函数体中调用函数本身。
默认情况下,函数体中的动作只作用于最终解析。
By default, the actions in a function body are only performed on a final parse.
内部函数是函数体紧跟函数声明之后的标准函数。
An internal function is a standard function where the function body follows the function declaration.
方法签名以冒号结尾,表示下面的代码行是函数体。
The method signature ends with a colon, which indicates that the body of the function follows on subsequent lines.
程序由函数组成,而函数体是一系列的语句序列。
Programs are organized as functions whose bodies are a sequence of statements.
函数定义不执行函数体,它们仅仅在调用时执行。
The function definition does not execute the function body; this gets executed only when the function is called.
生成器是这样一个函数,它记住上一次返回时在函数体中的位置。
A generator is a function that remembers the point in the function body where it last returned.
可以在全局范围以及在名称空间、函数体或类声明内使用静态断言。
You can use static assertions in global scope and inside namespaces, function bodies, or class declarations.
有几个版本中已出现了在函数体中用yield语句定义的生成器。
For several versions, we have had generators defined with the yield statement in a function body.
函数体,为所选函数在执行其自身代码时分配的对象数量。
Function Body, the total number of contention events that occurred when the function was executing its own code.
通常从抽象方法声明的函数体或接口方法声明中引发此异常。
Typically this exception is thrown from the function body of an abstract method declaration or from an interface method declaration.
为了我们的例子,所有更新方法的函数体仅包含一个打印语句。
For our example, the bodies of all the update methods just contain a print statement. When we run this example we get the following output.
请注意,大括号在循环中的使用不如在函数体和成员块中严格。
Notice that the use of braces in loops is less strict than for function bodies and member blocks.
由函数体组成的代码即使是在一行,仍必须在两端加上左右大括号。
Code that comprises the body of a function, even if it is a single line, must be contained within left and right braces.
函数体,为该函数执行自身代码时发生的争用事件中所用的总时间。
Function Body, the total number of bytes that were allocated by the selected function when it was executing its own code.
缺少标记函数体、类成员块、接口成员块或枚举块的开头的左大括号。
The left brace that marks the beginning of the function body, class member block, interface member block, or enumeration block is missing.
这个表达式实际上是一个“匿名函数”的函数体,在Scala中称为字面函数。
This expression is actually the body of an "anonymous function", called a function literal in Scala.
函数体然后从下一行开始,一直连续下去,直到遇到一个匹配的endfunction关键字。
The body of the function then starts on the next line, and continues until a matching endfunction keyword is encountered. For example.
定义:一种函数调用机制,你将函数声明为内联,编译器会将整个函数体在调用处展开。
Definition: You can declare functions in a way that allows the compiler to expand them inline rather than calling them through the usual function call mechanism.
定义函数必须指定4个元素:返回类型、函数名、圆括号内的形参表(可能为空)和函数体。
A function definition specifies four elements: the return type, the function name, a (possibly empty) parameter list enclosed in parentheses, and the function body.
定义、变量和函数体可以在程序的任意位置出现,Perl 所提供地强大功能可以最好地满足这种随意性。
Namespaces can begin and end anywhere. Definitions, variables, and functions bodies can occur anywhere and Perl will do its best to accommodate such madness.
限制:过度使用内联函数实际上会使减慢程序运行,取决于函数体大小,它决定了代码增加或减少。
Cons: Overuse of inlining can actually make programs slower. Depending on a function's size, inlining it can cause the code size to increase or decrease.
另外一个好处是下次重复使用这段代码的时候,再次调用函数就可以了,这比复制粘贴函数体可方便多了。
Another advantage is that if you reuse the code, it is more concise to call a function twice than to copy and paste the body!
另外一个好处是下次重复使用这段代码的时候,再次调用函数就可以了,这比复制粘贴函数体可方便多了。
Another advantage is that if you reuse the code, it is more concise to call a function twice than to copy and paste the body!
应用推荐