如果没有指定,函数将在定义它的闭包中运行。
A function will run in the closure that defines it unless otherwise specified.
在清单9中,定义了一个没有参数的简单函数。
In Listing 9, I define a simple function that takes no parameters.
你可能会得到,一个没有明确定义的势函数。
栈接口大大简化了这一点;在此,没有必要定义或声明函数所带的参数。
The stack interface dramatically simplifies this; there is no need to define or declare the arguments that the function takes.
更明智的方法是,仅在需要多次使用代码,并且对于您希望实现的任务没有可用的内置php函数时才定义函数。
The wiser way is to define functions only when you need to use the code multiple times and there are no PHP built-ins for the task you want to achieve.
到目前为止看到的例子中,匿名函数都只不过是一个没有名称的函数,它被就地求值,基于定义它的位置来决定它的上下文。
From the examples so far, you can see that an anonymous function is simply a function, without an name, that is evaluated in place and determines its context based on where it is defined.
在您定义有名称的函数时,您的读者会企图将函数名输入到他/她的记忆中,这没有必要复杂化读者对程序的理解。
Whenever you define a named function, your reader attempts to put that function name in his or her brain cache, which needlessly complicates the reader's understanding of the program.
通常在类定义中包含不带参数的构造函数没有任何意义。
Often, it just doesn't make sense to include a zeroary constructor in a class definition.
PINE 并没有包括系统头文件,而是对相关函数提供了自己的声明,所有这些都是使用32 位偏移量来定义的。
PINE, rather than including the system headers, provided its own declaration of the related functions, all defined in terms of 32-bit offsets.
开始写一个特别小的程序,没有函数定义。
Start by writing a small program with no function definitions.
然而要注意的是,该函数本身也只是另一个person对象的属性,如果没有圆括号,它将引用一个未定义的值。
Notice, however, that the function itself is just another property of the person object and that, without the parentheses, it would refer to an undefined value.
Vimscript中的函数使用function关键字定义,后跟函数名,然后是参数列表(这是强制的,即使该函数没有参数)。
Functions in Vimscript are defined using the function keyword, followed by the name of the function, then the list of parameters (which is mandatory, even if the function takes no arguments).
没有必要实现FunctionCall接口中所定义的所有函数。
There is no need to implement all the functions defined in the FunctionCall interface.
发出二进制部署的用户ID在RACF程序控制中没有定义。用于切换用户的_ login函数调用失败。
The user ID that is issuing the binary deploy is not defined to the RACF program control the _login function to switch users failed.
没有使用 Listener接口,而是使用该类定义的匹配要注意的事件处理程序入口点的特性(例如actionPerformed)设置给Jython函数。
No Listener interface is used; instead attributes that match the interesting event handler entry points defined by the class (for example, actionPerformed) are set to Jython functions.
如果没有针对您的任务的内置函数,那么可使用xsl:function来定义您自己的函数。
You might use XSL: function to define your own function, if there is not a built-in function for your task.
如果存在特定于某个数据源的、在WebSphereInformation Integrator上没有的特殊函数,则需要那个函数的函数模板定义。
If there is some special function specific to a data source and not available on WebSphere Information Integrator, you need a function template definition for that function.
显然,第一个代码块是一个函数声明,定义了名为ToggleSyntax的函数,它没有包含任何参数。
The first block of code is obviously a function declaration, defining a function named ToggleSyntax , which takes no arguments.
C支持使用 va_list定义具有数量可变的参数的函数,C++在这方面没有改进。
C has support for defining functions with a variable number of arguments using va_list, and C++ never improved on that.
原因在于,我们需要以对两个ProgressBar的引用作为回调的参数,而当Scale构造函数被调用时,它们还没有被定义。
The reason is that we need references to both ProgressBars as arguments to the callback, and at the time the Scale constructor is invoked, they are not all defined yet.
为什么在不同的文件中定义的函数访问变量定义在文件没有外面的吗?。
Why can function defined in a different file access variables defined in that file without extern?
还有第三种可能性:元素类型可能是没有定义任何构造函数的类类型。
There is a third possibility: The element type might be of a class type that does not define any constructors.
语言的定义并没有对函数的具体实现有过多的规定,比规定定义具体如参数的个数或类型。
The C language definition does not contemplate the question of procedures whose formal and actual argument lists disagree in number or type.
你没有定义复制构造函数,默认的是由编译器创建的。
You didn't define a copy constructor so a default one was created by the compiler.
对于应该从脚本中出现的变量和函数,有大量未定义的变量错误,但除此之外,没有错误。
There are plenty of Undefined Variable errors for variables and functions that should be present from the script, but other than that, no errors.
在上面所列的常规函数中,以下几个在其他地方没有被定义。
Of the routines listed above, the following are not defined elsewhere.
例如,在Time1. py里面,类的定义和后面的函数定义就没有啥明显的练习。
For example, in Time1. py there is no obvious connection between the class definition and the function definitions that follow.
定义了方法类型正文,但没有声明用于创建对象类型的成员函数。
Method type body is defined without member function declared for creating object type.
所以,即使在定义域内没有典型的单点能同时最大限度地最小化所有的目标函数,也只有一个解决方案可以选择。
Even though there is typically no single point in decision space that simultaneously minimizes all of the objective functions, only one solution can be chosen.
正如在第2 . 8节所学习的,在定义类时没有初始化它的数据成员,而是通过构造函数来初始化其数据成员。
As we learned in Section 2.8 (p. 65), class data members are not initialized when the class is defined. Instead, data members are initialized through a constructor.
应用推荐