然后通过组合该前缀与被调用方法的名称,可以使用标准的函数调用语法调用函数。
You then can call the functions using standard function call syntax, by combining this prefix with the name of the method to be invoked.
方法或函数可通过传入参数与闭包通信。
A method or function can communicate with a closure by passing in arguments.
把服务ID传递给搜索函数来将其与传递给方法的提要ID相比较。
Pass this to a function called search to compare it against the feed ID passed into the method.
比如,compare方法比较两个字符串;sort和asort方法以与相应的php数组函数相同的方式对数组或关联数组进行排序。
For example, the compare method compares two strings; the sort and asort methods sort arrays or associative arrays in a way similar to the corresponding PHP array functions.
register_function()方法与脚本中一个名字为任务名的本地函数相关联。
The register_function() method associates a local function in the script with the name of a task.
decorator也可以用于正则函数,采用的是与类中的方法相同的方式。
Decorators work for regular functions too, in the same manner as for methods in classes.
您可能会感到疑惑:调用GObject方法与调用简单的C函数到底有何区别?
You may be wondering exactly how calling a GObject method differs from calling a simple C function.
正如所看到的,声明summarize方法与声明任何函数的方式一样,只不过它是在类中声明。
As you can see, the summarize method is declared just as any function would be declared, except that is done within a class.
该活动的 onCreate方法可以引用SensorManager,其中包含所有与传感器有关的函数。
The onCreate method of the activity gets a reference to the SensorManager, where all sensor-related functions take place.
函数类型确实是表现lambda表达式类型的一种自然方法,但遗憾的是它们无法与现有语言功能“擦除(erasure)”很好地进行交换。
Function types are indeed the natural way to represent the type of a lambda expression, but unfortunately they interact badly with an existing language "feature" : erasure.
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.
当我们开始与库交流时,我们调用一个名为 newsession 的函数,它会返回一个空指针(这是组织事情的惯用方法)。
When we start talking to the library about something, we call a function called newsession that returns a void pointer (not an unusual way to organize things).
xrange这样的函数与生成器类似的方面有些“特殊”,它们既不是真正的迭代器(没有.next方法),也不是实际的列表(比如range返回的列表)。
Functions like xrange are a bit "special" in being generator-like, but neither quite a real iterator (no.next method), nor a realized list like range returns.
错误对象:使用地址,通过与对象的构建函数调用的地址进行比对,可以检查出是不是在正确的对象上调用方法。
Incorrect objects: Using the address, it is possible to check that methods are being invoked on the desired object by matching to the address on the constructor call for that object.
该方法与将php函数收集到模块中的方法相结合的另一好处就是,您可以容易地将php页面的标题和脚注标准化为一个单独模块。
Another advantage of combining this approach with collecting PHP functions into modules is that you can easily standardize the header and footer for your PHP pages into a separate module.
接受一般数据而不接受强类型对象的方法签名的目标在于确保调用函数与目标对象之间的松散耦合。
The goal of a method signature that accepts generic data instead of strongly typed objects is to ensure loose coupling between the caller and the target object.
方法和构造函数模板与字段模板类似,如清单4 所示。
The method and constructor templates are similar to the field template, as Listing 4 shows.
另一种方法是,函数值不变的方向是,是与等值面相切的方向。
The other way to think about it, the direction in which the value doesn't change is a direction that's tangent to the level surface.
在PHPV 4中,通过声明与类同名的方法来创建构造函数。
In PHP V4, you create a constructor by declaring a method with the same name as that of the class.
与所有其他的属性函数类似,这些函数也有相应的setter方法。
Like all the other attribute functions, these have corresponding setter methods as well.
这样做的方法是,Perl对象包含一个只读的整数,此整数与函数newsession()返回的空指针相对应。
The way this is set up, the Perl object contains a read-only integer that corresponds to the void pointer returned by newsession().
对XPath调用检索得到的每个文本节点执行遍历,方法与onewordsearch函数中的执行方法相同。
Walking through each text node as retrieved from the XPath call is done the same way as in the oneWordSearch function.
我们完成的任务与上文中的故障示例相同,但没有像前面那样在单个Web服务方法中设置faul t属性,而是使每个方法调用此函数。
We did the same thing in the fault example earlier, but instead of setting fault properties in the individual Web service methods, we have each of the methods call this function instead.
注意,对类中方法的更改与db4o无关,因为它不将方法或方法实现作为存储的对象数据的一部分,对于构造函数的重构也是如此。
Note that method changes to the class are irrelevant to db4o because it doesn't store methods or method implementations as part of the stored object data, and ditto for constructor refactorings.
我还添加了一个构造函数,与调用大量setter方法相比,这个构造函数可以更加轻松地创建完全初始化的对象。
I also added a constructor that'll make creating fully initialized objects a lot easier as compared to calling a lot of setter methods.
提出一种由线性调频与二相码组合而成的新型混合脉冲信号,给出了其数学表达式、处理方法及其模糊函数的表达式。
According to a new type of mixed pulse compression signal, this paper discusses the mathematical expression, the way of processing and the expression of the ambiguity function.
结合实例说明了含有删失数据的可靠性函数估计的几种方法,对于现场寿命数据分析与可靠性评估具有参考价值。
Illustrated with examples, it has reference value for the field life data analysis and reliability evaluation, illustrating several estimation methods concerning reliability function of deleted data.
获得方法信息的Class反射调用与用于构造函数和字段的调用非常类似。
The Class reflection calls to access method information are very similar to those used for constructors and fields.
调用一个方法的语法与调用函数的语法不一样。
The syntax for invoking a method is different from the syntax for calling a function.
调用一个方法的语法与调用函数的语法不一样。
The syntax for invoking a method is different from the syntax for calling a function.
应用推荐