Closure (computer science)
Автор:
Jesse Russell,Ronald Cohn, 136 стр., издатель:
"Книга по Требованию", ISBN:
978-5-5108-6911-8
High Quality Content by WIKIPEDIA articles! In computer science, a closure (also lexical closure, function closure, function value or functional value) is a function together with a referencing environment for the non-local variables of that function. A closure allows a function to access variables outside its typical scope. Such a function is said to be "closed over" its free variables. The referencing environment binds the nonlocal names to the corresponding variables in scope at the time the closure is created, additionally extending their lifetime to at least as long as the lifetime of the closure itself. When the closure is entered at a later time, possibly from a different scope, the function is executed with its non-local variables referring to the ones captured by the closure. Данное издание представляет собой компиляцию сведений, находящихся в свободном доступе в среде Интернет в целом, и в информационном сетевом ресурсе "Википедия" в частности. Собранная по частотным...
Рейтинг книги:



4 из 5,
1 голос(-ов).