詞法域

基本介紹

  • 中文名:詞法域
  • 外文名:Lexical Scoping
  • 解析:定義在Scheme中環境的方法
  • 相關:動態作用域
英文名,解析,相關閱讀,

英文名

Lexical Scoping
Lexical Scoping(sometimes called static) is the method used to define the scope andextent of variables in Scheme, Common Lisp, Pascal and Algol. Lexicalscoping requires keeping track of the lexical order as well as thedynamic execution order at runtime. This means that a Scheme procedurecall will of necessity be more expensive than a similar call in C orFortran

解析

詞法域是塊主海騙結構的更進一步格遷疊,如果永恥紙嵌套過程中的參數如遙說果外部過整洪捆程已經定義過了(從外面過程傳遞達獄達夜進來),對於該嵌套過程,可以省略參數,但是過程內部仍然可以使用外部過程定義過的參數。這種塊結構稱為詞法域。境煮請甩

相關閱讀

Dynamic Scoping
動態作用域

相關詞條

熱門詞條

聯絡我們