| 1. | As well as the stream for the log output 的函数对象)以及流作为日志输出。 |
| 2. | In usual cases of method invocation the return result is a function object , which is then executed 方法调用通常返回的结果是一个函数对象,然后执行这个函数对象。 |
| 3. | For future reference , you can add any attribute to a function by setting it on the function object 为了将来引用,您可以通过将属性设置在函数对象上给函数添加任何属性。 |
| 4. | This implementation supports function objects with up to nine arguments . this is an implementation detail , not an inherent limitation of the design 当前的实现支持最多带有9个参数的函数对象。这一限制是由实现细节,而不是设计造成的。 |
| 5. | In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function 这种情况下返回的函数对象就是一个闭包,其中封装了一些日志代码和最初的函数调用所需要的数据。 |
| 6. | Function objects to names in the example , but that is not strictly necessary . we could instead simply nest the definitions . for readability we do it this way ; but also because 我们定义的每一个闭包函数都携带了函数范围内定义的任何值,然后将这些值绑定到函数对象的全局范围。 |
| 7. | From multimethods import dispatch " multimethods " is generally a synonym for multiple dispatch ; but the name multimethod suggests the concrete function object handling the more abstract concept multiple dispatch . an instance of “多元法( multimethods ) ”通常是多分派的同义词;但是多元法这个名称暗示着处理较抽象的概念时应采用具体的函数对象。 |
| 8. | If the name denotes a valid class attribute that is a function object , a method object is created by packing ( pointers to ) the instance object and the function object just found together in an abstract object : this is the method object 如果这个命名确认为一个有效的函数对象类属性,就会将实例对象和函数对象封装进一个抽象对象:这就是方法对象。 |
| 9. | When the method object is called with an argument list , it is unpacked again , a new argument list is constructed from the instance object and the original argument list , and the function object is called with this new argument list 以一个参数列表调用方法对象时,它被重新拆封,用实例对象和原始的参数列表构造一个新的参数列表,然后函数对象调用这个新的参数列表。 |
| 10. | For instance , while a function object has parameters associated with it in all the visual studio languages , in visual c the function can have additional properties unique to the c language , such as being virtual , a constant , or part of an idl file 例如,某个函数对象在所有visual studio语言中均具有与其相关联的参数时,而在visual c + +中,此函数可以包含c + +语言中特有的附加属性,如虚拟性、常数或idl文件的一部分。 |