看板 PLT 關於我們 聯絡資訊
想請問為什麼C不能nested routine? CFL不是可以parse 這種 grammar 嗎? nested routine的優點又是什麼呢 看了wiki http://en.wikipedia.org/wiki/Nested_functions 並沒有很詳細的提到nested routine的優點與缺點 還有nested routine 的scoping 是算dynamic scoping 嗎 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.22.63.250
godfat:覺得用處不大的關係?應該還是用 lexical scoping 就好吧? 04/21 20:04
sunneo:其實gcc有extend nested routine 01/03 16:22
sunneo:好處是不同函式內可以有同名不同效果的函式 01/03 16:23
sunneo:ex: compare function 01/03 16:23