现在,回到内部函数的工作上来。
内部函数只能由定义它的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.
在内部函数这样做,感觉就像手术对焊工手套。
Doing it in intrinsics feels like surgery with welder's gloves on.
当内部函数获得和使用其外部函数的变量时,就称其为一个闭包。
When an inner function gains and USES access to its outer function's variables it is known as a closure.
一个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.
最后,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.
除了正确无误,我的hashcash . py模块还提供了一个内部函数_ mint以及一个公共函数mint 。
As well as being correct, my hashcash.py module provides an internal function, _mint , along with the public function, mint .
该元素指定被跟踪对象是内部函数(fnc,0)、组件外部接口(cei,2)还是外部api (api,3)。
This element specifies whether the function is an internal function (FNC, 0), component external interface (cei, 2), or external API (API, 3).
通过运用VB中若干内部函数的文本框,对在程序运行过程中动态地输入函数表达式,并求得函数值和梯度的可行性进行了探讨。
The article discusses how to use some inner function and textbox about VB to dynamic input expression of functions when running program, finally getting the result of function and grades.
Reddit的所有内容都使用了memcache:数据库的数据、会话数据、渲染的页面、存储的内部函数、预先计算的页面、全局锁。
Reddit started to use memcache for about everything: database data, session data, rendered pages, memorizing internal functions, pre-computed pages, global locking.
在使用set -x时还要记住一点:如果脚本有内部函数,而且set - x放在代码的主体部分,那么它的输出会包含子函数的运算过程。
One thing to keep in mind when using set -x is that if the script you're evaluating has internal functions, set -x will carry over to its child function if placed in the root body of the code.
绑定变量基本上就是将函数绑定到内部触发器上以读写该变量。
Tying a variable is basically the binding of functions to the internal triggers for reading and writing that variable.
这种安置是由一个内部的哈希函数决定的,该函数接受定义为分区键的列内的值并返回数据库分区号。
The placement is determined by an internal hashing function that takes the values in the column or columns defined as a partitioning key and returns the database partition number.
这种安置是由一个内部的哈希函数决定的,该函数接受定义为分区键的列内的值并返回数据库分区号。
The placement is determined by an internal hashing function that takes the values in the column or columns defined as a partitioning key and returns the database partition number.
应用推荐