go top

网络释义

  lexical scope

lexical scope词法作用域)指局部变量只能作用在函数中和一

基于264个网页-相关网页

  Lexical Scoping

Lua 中的函数是带有词法作用域lexical scoping)的第一类值,也可以说是函数变量的作用域,即函数的变量是有一定的效用范围的,变量只能在一定范围内可见或访问到。

基于126个网页-相关网页

双语例句

  • 如果内嵌函数调用作用就是它们定义处的词法作用域,那理解了。

    Nested functions are perfectly understandable when they are invoked in the same lexical scope in which they are defined.

    youdao

  • 内部以及lambda表达式一个局限性——它们引用来自它们词法作用域最终(final)局部变量

    One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.

    youdao

  • 段代码执行结果期望遵循词法作用域规则程序运行的完全一样:一个函数定义的作用执行。

    The results of this code are exactly what you would expect from a strict application of the lexical scoping rule: a function is executed in the scope in which it was defined.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定