Re: [問題]請問為什麼C不支援nested routine?

看板PLT (程式語言與理論)作者 (allstars)時間17年前 (2008/04/22 16:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《allstarschh (allstars)》之銘言: : 想請問為什麼C不能nested routine? : CFL不是可以parse 這種 grammar 嗎? : nested routine的優點又是什麼呢 : 看了wiki : http://en.wikipedia.org/wiki/Nested_functions : 並沒有很詳細的提到nested routine的優點與缺點 : 還有nested routine 的scoping : 是算dynamic scoping 嗎 來自問自答一下 目前是有找到類似的討論 http://discuss.techinterview.org/default.asp?interview.11.431470.11 sorry 我不會縮網址 不過這裡面講的那段 ECX , dynamic code generation 我還不是很清楚...so. to be updated 另外C++ 有nested classes 所以有人用nested classes 的方法來作nest function http://www.gotw.ca/gotw/058.htm -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.22.63.250
文章代碼(AID): #183Q8Ecx (PLT)
文章代碼(AID): #183Q8Ecx (PLT)