週三"阿摩用功日",VIP免費領取 前往

教甄◆電腦科專業題庫下載題庫

上一題
副程式名當作副程式的參數,關於被傳入的副程式執行時的參考環境(Referenceenvironment),以下那一方法最適合Dynamicscoping的程式語言?
(A)Shallowbinding
(B)Deepbinding
(C)Adhocbinding
(D)以上皆非
編輯私有筆記及自訂標籤
答案:A
難度:困難
1F
安身立命 國二下 (2016/03/29 13:36)
Dynamic scoping從 Call Stack 找 Scope
Static Scoping從 Definition 找 Scope
http://pjack1981.blogspot.tw/2013/06/static-vs-dynamic-scoping.html
Shallow淺的
ShallowBinding gives good performance when looking up variables, but makes the implementation of DynamicClosures difficult. MacLisp, for example, only solved the "downward funarg" problem, and not the "upward funarg" problem.