现在,回到内部函数的工作上来。
现在,我们看看加载模块时的内部函数(参见图4)。
Let's now look at the internal functions for module loading (see Figure 4).
内部函数只能由定义它的dll在内部使用。
Internal functions can only be called from within the DLL where they are defined.
更何况,内部函数可以具有别名,看上去像方法调用一样。
What's more, inner functions can be aliased to look like method calls.
在下一小节,我们将了解如何在名称空间内覆盖内部函数。
In the next section, we see how we can even override internal functions in a namespace.
第二个内部函数再将股票代码和股价传递给业务规则函数!
The second inner function applies the ticker and price to the business rule function!
内部函数是函数体紧跟函数声明之后的标准函数。
An internal function is a standard function where the function body follows the function declaration.
在内部函数这样做,感觉就像手术对焊工手套。
Doing it in intrinsics feels like surgery with welder's gloves on.
get_user函数将映射到两个内部函数其中的一个。
The get_user function maps to one of two internal functions.
当内部函数获得和使用其外部函数的变量时,就称其为一个闭包。
When an inner function gains and USES access to its outer function's variables it is known as a closure.
内部函数又将第二个内部函数映射到每一个业务规则函数。
The inner function maps a second inner function to each business rule function.
第一个函数st_assvg_int是一个内部函数,不能直接调用。
First, ST_AsSVG_int is an internal function that should not be called directly.
一个dll可以定义两种类型的函数:导出函数和内部函数。
DLL can define two kinds of functions: exported and internal.
如果要简短的描述作用域链的重点,作用域链大多与内部函数有关。
If to describe briefly and showing the main point, a scope chain is mostly related with inner functions.
XQuery函数是强类型的,支持递归,可声明为内部函数或外部函数。
XQuery functions are strongly typed, support recursion, and can be declared as internal or external.
一个嵌套的内部函数可以继承外部函数的参数和变量,并由该外部函数私有。
A nested, or inner, function can inherit the arguments and variables of its outer function, and is private to that function.
您可能会感到奇怪。其实内部函数调用将输入字符串转换成使用特定格式编译的时间戳。
In case you're curious, the inner function call converts the input string into a timestamp that complies with a specific format.
当有一个以上的内部函数时,闭包产生的效果可能没有预期所想像的那样简单。
When more than one inner function exists, closures can have effects that are not as easy to anticipate.
由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。
Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.
然后我定义了一个属性(asjson)指向内部函数,其任务是将JSON消息用字符串表示。
I then defined a property (asJSON) pointing to an inner function whose job it is to hand-jam a string representation of my JSON message.
这样的话,当外部函数返回之后,在调用内部函数时,外部函数的局部变量仍然是可用的。
Later, after the outer function has returned, when the inner function is called, the outer function's local variables will still be available to it.
apply_biz_rules函数将一个内部函数映射到市场数据中的每一对股票代码/股价。
The apply_biz_rules function maps an inner function to each ticker/price pair within the market data.
最后,SystemTap提供许多内部函数,这些函数提供关于当前上下文的额外信息。
Finally, SystemTap provides a number of internal functions that offer additional information about the current context.
虽然PHP的内部函数经常可以提供非常棒的实用方法,但有时它们不能按照我们期望的那样执行。
While oftentimes, the internal functions in PHP provide great utility, sometimes they don't do exactly what we want them to.
这样一来,便可以很自然地组织代码,并将匿名内部函数的概念引入到OpenLaszlo开发当中。
This allows you to group code naturally and brings the concept of anonymous inner functions to OpenLaszlo development.
闭包功能非常强大,原因是它们使内部函数在外部函数返回时也仍然可以保留对此外部函数的变量的访问。
Closures are powerful because they enable inner functions to retain access to an outer function's variables even after the outer function has returned.
FORTRAN语言的一种子集,包括许多由通用操作语句扩展的、作完全控制维护用的内部函数。
A subset of FORTRAN including built-in functions augmented by versatile operating statements for complete control maintenance.
这个内部函数以一个几何图形的WKT 表示(而不是几何图形本身)以及作为SVG属性的颜色和线宽为输入。
This internal function takes the WKT representation of a geometry as input -- not the geometry itself -- along with the color and line width for the respective SVG attributes.
这意味着函数很少都会在最高层的命名空间中,它们通常都是内部函数,这就意味着可以很容易地使用闭包。
This means that functions are rarely in the top-level namespace; they are usually inner functions, which means they can quite easily become closures.
这意味着函数很少都会在最高层的命名空间中,它们通常都是内部函数,这就意味着可以很容易地使用闭包。
This means that functions are rarely in the top-level namespace; they are usually inner functions, which means they can quite easily become closures.
应用推荐