FEEDBACK

Meaning of 闭包

Lookup via: Pinyin | Radicals
闭 bì 包 bāo (Trad.: 閉包)
closure (math.)
Example Sentences
1
然而
,
它使用了闭包和线程本地存储来区分共享和隔离的变量
。
However, it uses closures and thread local storage to distinguish between shared and isolated variables.
2
当一个闭包
“
捕获
”
一个变量时
,
它就会将这个变量提取出它的本地范围
,
移到一个匿名对象里
。
When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.
3
一个闭包封闭了这些引用
,
所以函数调用可以安全的引用这些变量
,
即使它们已经超出了函数的作用域
。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!