Sunday, May 13, 2012

Lua 의 closure 란 무엇인가?

질문 : Lua 의 closure 란 무엇인가?
답 : In computer science, a closure (also lexical closure or function closure) is a function together with a referencing environment for the non-local variables of that function.
레퍼런스 : http://en.wikipedia.org/wiki/Closure_(computer_science)
인용 : Lua uses the concept of a closure - in Lua, variables that are local to a function are also available in functions that are defined within that function i.e. within nested definitions, or 'within the outer closure'.
레퍼런스 : What are closures in Lua?

No comments:

Post a Comment