[課業] deep binding 和 shallow binding

看板Examination (國家考試)作者 (找不到家的人)時間12年前 (2013/11/28 12:13), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請教deep binding 和 shallow binding的觀念問題 1.兩者皆屬於dyanmic scoping 2.shallow binding 所使用自由變數,在執行函數時的環境所決定 3.deep binding 所使用自由變數,在定義函數時的環境所決定 http://ppt.cc/SMds 我認為的答案是 shallow binding is 5 deep binding is 3 但下面的answer回答跟我不一樣 想請問各位版友認為的是? 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.166.130.253

11/28 23:44, , 1F
shallow的答案是1 add改的x是second的x 但main是用global x
11/28 23:44, 1F
文章代碼(AID): #1IbiBE3g (Examination)
文章代碼(AID): #1IbiBE3g (Examination)