从此以后,当你说,声明一个函数,我在这里声明了一个函数,但是到这里我定义它或执行它。
So now, henceforth, when you say, to declare a function, I am declaring a function here but down here am I quote unquote defining it or implementing it.
在这个模块中,我们声明了一个这种类型的函数来处理到达的数据。
In the module, I declare a function of this type to deal with the incoming data.
隐式类型系统一个较大的优点是,不需要为函数的参数声明类型,因为编译器会从传入的值推断出参数的类型。
One big advantage of type-inferred systems is that you don't need to declare the types of arguments to a function because the compiler infers them from the parameters you pass in.
目前,这些函数的实现基于这样一个假设:所有局部或全局声明的元素都属于某个特定的名称空间。
Currently these functions are implemented based on the assumption that all elements, locally or globally declared, belong to a certain namespace.
再次声明这仅仅是一个队列对象的函数。
Once again this is really just a function on the queue object.
通过使用XPath规范,前面声明的rss-summary函数使用了一个for 循环在每个项上进行迭代,以便选择每个项。
The previously declared rss-summary function uses a for loop to iterate over each item by using the XPath specification to select each item.
不管在哪里声明一个变量或函数,extern关键字都允许其他文件在不确定其定义位置的情况下使用该文件。
No matter where you declare a variable or function, the extern keyword allows other files to use it without knowing where it was defined.
不幸的是,它将导致图5所示的错误消息,因为在dojo. forEach方法调用中声明的函数创建了一个闭包,该闭包将this定义为引用它本身。
Unfortunately, it will result in the error message shown in Figure 5, because the function declared in the dojo.forEach method call creates a closure that defines this as referring to its own body.
这里我声明另一个变量,这个完全是合法的因为我已经知道,如果我执行一个像swap,或,increment的函数,我完全可以携带输入。
X so here I'm declaring another variable called X, and this is totally legitimate because I already know that if I'm implementing a function like swap or increment, I can absolutely take input.
FillMatchRow方法的其余参数必须声明为输出参数而且必须与第一个函数中定义的表定义匹配。
The remaining parameters of the FillMatchRow method must be declared as out parameters and must match the table definition defined in the first function.
或者,我们可以声明一个使用通用实例的对象,它可能要用常量来定义内部结构,然后我们可以选择一个常量来为这个函数赋值,以使其具备变量的特征。
Alternately, you can declare a kind of object using the all-purpose instantiator var, which may use literals to define internal structures.
如果需要实现一个回调函数,只需添加一个方法并通过注释将其声明为回调函数即可。
If you need to implement one of those callbacks, you can simply add a method and annotate it to declare that it's a callback.
第一个是头文件,它声明库导出的所有函数,而且代码中的客户机包括这些函数。
The first is a header file, which declares all the functions exported by the library and will be included by the client in the code.
为fci所创建的每一个定制函数声明惟一的识别号。
Declare a unique identification number for each custom function that you will create with the FCI.
要使用fuse来创建一个文件系统,您需要声明一个fuse_operations类型的结构变量,并将其传递给fuse_main函数。
To create a filesystem with fuse, you need to declare a structure variable of type fuse_operations and pass it on to the fuse_main function.
最后,注意您已经声明了一个fullname属性,也为它提供了一个函数,这些计算属性在Sprout Core中是非常重要的。
Finally, notice that you have also declared a fullName property and have supplied a function for it. These computed properties are very important in SproutCore.
在functioncall类的内部,必须声明要创建的每一个定制函数。
Inside the FunctionCall class, you must declare each of the custom functions you want to create.
Uniq函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
The Uniq function is declared to take a range, so it will only be called once, even when invoked on a range of lines in the buffer.
该转换还提供了另外一个选项:为一个在类声明下的头文件中的内联函数生成该函数的定义。
The transformation also provides an option to generate the function definition for an inline function in the header file below the class declaration. To activate this option, perform these steps
AccessSpecifier声明了访问一个函数或者方法的级别。
An access Specifier declares a level of access to a function or method.
这里的代码使用了一个局部变量diff,这个局部变量只定义在这一块代码范围内,之后在构造函数中又声明了另一个相同级别的变量fill。
The code here USES a local variable diff, which is only defined within this block of code, while later in the constructor a separate variable, fill, is declared at the same level.
清单1显示了一个简单的例子,它声明了一个包含6个属性的hash:一个字符串、一个整数、一个布尔值、一个未定义的属性、另一个hash和一个函数。
A simple example is shown in Listing 1, declaring a hash consisting of 6 attributes: a string, an integer, a Boolean, an undefined attribute, another hash, and a function.
显然,第一个代码块是一个函数声明,定义了名为ToggleSyntax的函数,它没有包含任何参数。
The first block of code is obviously a function declaration, defining a function named ToggleSyntax , which takes no arguments.
Vimscript中的函数声明为运行时语句,因此如果一个脚本被加载两次,那么该脚本中的任何函数声明都将被执行两次,因此将重新创建相应的函数。
Function declarations in Vimscript are runtime statements, so if a script is loaded twice, any function declarations in that script will be executed twice, re-creating the corresponding functions.
如果希望声明一个“真正的”(即有用的)dojo类,那么一定要理解构造函数。
If you want to declare a "real" (that is, useful) Dojo class, it's important to understand constructors.
一旦声明了类型,就可以将该类型显式的作为第一个参数来声明函数。
Once a type has been declared, functions can be declared which take that type as an implicit first parameter.
在一个dojo类中,可以声明一个preamble、一个constructor和一个postscript,但是在大多数情况下,您只需要声明一个构造函数。
In a Dojo class you can declare a preamble, a constructor, and a postscript, but in the majority of cases you will only need to declare a constructor.
作为应答,这里我们有一点变化,这里我显然定义了-,声明了一个叫做cube的函数。
So in return to, we have a slight variance here, -- where I'm defining apparently -- declaring a function called cube.
我也编写了一个与实际的Python函数相同的函数,基本来说,只是去掉这些声明。
I also wrote the same function as actual Python, basically just by taking the declarations back out. Running the Pyrex and Python versions, and also a Psyco-ized Python version gives these times.
我也编写了一个与实际的Python函数相同的函数,基本来说,只是去掉这些声明。
I also wrote the same function as actual Python, basically just by taking the declarations back out. Running the Pyrex and Python versions, and also a Psyco-ized Python version gives these times.
应用推荐